Author: kien_nguyen
Date: 2011-09-14 23:39:16 -0400 (Wed, 14 Sep 2011)
New Revision: 7432
Modified:
portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/gadget/UIGadget.js
Log:
GTNPORTAL-819 Make sure pubsub is working between gadget
Modified: portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/gadget/UIGadget.js
===================================================================
---
portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/gadget/UIGadget.js 2011-09-15
00:00:54 UTC (rev 7431)
+++
portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/gadget/UIGadget.js 2011-09-15
03:39:16 UTC (rev 7432)
@@ -35,7 +35,7 @@
eXo.gadgets = window.gadgets;
//window.gadgets = eXo.gadget.Gadgets;
if (!eXo.gadgets || !eXo.gadgets.rpc) {
- eXo.core.Loader.register('rpc', '1.0.0',true, 0, hostName +
'/js/rpc.js?c=1');
+ eXo.core.Loader.register('rpc', '1.0.0',true, 0, hostName +
'/js/pubsub.js?c=1');
eXo.core.Loader.register('eXo.gadgets.Gadgets',
'/eXoResources/javascript/eXo/gadget/Gadgets.js');
eXo.core.Loader.register('eXo.gadgets.ExoBasedUserPrefStore',
'/eXoResources/javascript/eXo/gadget/ExoBasedUserPrefStore.js');
}
@@ -82,8 +82,9 @@
}
else uiGadget.style.width = "auto";
eXo.gadget.UIGadget.init(uiGadget, isDesktop, gadget.metadata);
- }
-
+ }
+ //setup for pubsub mechanism
+ gadgets.pubsubrouter.init(function(id){return url;}, {});
},
/**
* Initialize data of gadget such as title, style, etc
Show replies by date