Permalink
Browse files

Rename AjxpMqObserver and remove references to ajaxplorer

  • Loading branch information...
1 parent 204c1a9 commit 9670ab5926d60992e6ba94dbeba093523f8939ae @cdujeu cdujeu committed May 23, 2016
@@ -21,7 +21,7 @@
/**
* Use WebSocket or Poller
*/
-Class.create("AjxpMqObserver", {
+Class.create("PydioInstantMessenger", {
pe:null,
currentRepo:null,
@@ -40,10 +40,9 @@ Class.create("AjxpMqObserver", {
this.defaultPollerFreq = this.configs.get('POLLER_FREQUENCY') || 15;
this.pollingFrequency = this.defaultPollerFreq;
- document.observe("ajaxplorer:repository_list_refreshed", function(event){
+ pydio.observe("repository_list_refreshed", function(data){
var repoId;
- var data = event.memo;
if(data.active) {
repoId = data.active;
} else if(pydio.repositoryId) {
@@ -4,7 +4,7 @@
<client_settings>
<resources>
<i18n namespace="core.mq" path="plugins/core.mq/i18n"/>
- <js className="AjxpMqObserver" file="plugins/core.mq/class.AjxpMqObserver.js"/>
+ <js className="PydioInstantMessenger" file="plugins/core.mq/class.PydioInstantMessenger.js"/>
</resources>
</client_settings>
<server_settings>
@@ -36,11 +36,11 @@
<action name="client_register_channel">
<rightsContext adminOnly="false" noUser="true" read="false" userLogged="true" write="false"/>
<processing>
- <clientListener name="contextChange"><![CDATA[
- if(!ajaxplorer.mqObserver && ajaxplorer.user && !ajaxplorer.mqObserverLoading && !window.ajxpMinisite){
- ajaxplorer.mqObserverLoading = true;
- ResourcesManager.prototype.loadJSResource('plugins/core.mq/class.AjxpMqObserver.js', 'AjxpMqObserver', function(){
- ajaxplorer.mqObserver = new AjxpMqObserver();
+ <clientListener name="init"><![CDATA[
+ if(!pydio.mqObserver && !pydio.mqObserverLoading && !window.ajxpMinisite){
+ pydio.mqObserverLoading = true;
+ ResourcesManager.prototype.loadJSResource('plugins/core.mq/class.PydioInstantMessenger.js', 'PydioInstantMessenger', function(){
+ pydio.mqObserver = new PydioInstantMessenger();
}, true);
}
]]></clientListener>

0 comments on commit 9670ab5

Please sign in to comment.