Author: kien_nguyen
Date: 2011-08-30 07:40:26 -0400 (Tue, 30 Aug 2011)
New Revision: 7252
Modified:
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UIGadgetEditor.java
portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/portal/PortalHttpRequest.js
Log:
GTNPORTAL-1957 Caching issue when edit gadget in App.registry
Modified:
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UIGadgetEditor.java
===================================================================
---
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UIGadgetEditor.java 2011-08-29
19:58:45 UTC (rev 7251)
+++
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UIGadgetEditor.java 2011-08-30
11:40:26 UTC (rev 7252)
@@ -226,7 +226,7 @@
String gadgetUrl = GadgetUtil.reproduceUrl(gadget.getUrl(), gadget.isLocal());
String metadataUrl = gadgetServerUrl + (gadgetServerUrl.endsWith("/")
? "" : "/") + "metadata";
String queryString =
"{\"context\":{\"ignoreCache\":\"true\"},\"gadgets\":["
+ "{\"url\":\"" + gadgetUrl + "\"}]}";
-
event.getRequestContext().getJavascriptManager().addJavascript("ajaxRequest('"
+ metadataUrl + "', true, 'POST', '" + queryString +
"');");
+
event.getRequestContext().getJavascriptManager().addJavascript("ajaxRequest('POST',
'" + metadataUrl + "', true, '" + queryString +
"');");
}
}
Modified:
portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/portal/PortalHttpRequest.js
===================================================================
---
portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/portal/PortalHttpRequest.js 2011-08-29
19:58:45 UTC (rev 7251)
+++
portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/portal/PortalHttpRequest.js 2011-08-30
11:40:26 UTC (rev 7252)
@@ -730,7 +730,7 @@
* @return {String} response text if request is not async
*/
function ajaxAsyncGetRequest(url, async) {
- ajaxRequest("GET", url, async);
+ return ajaxRequest("GET", url, async);
}
/**
Show replies by date