portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smi...@apache.org
Subject svn commit: r485114 - /portals/jetspeed-2/trunk/src/webapp/javascript/jetspeed/widget/PageEditor.js
Date Sun, 10 Dec 2006 00:58:26 GMT
Author: smilek
Date: Sat Dec  9 16:58:26 2006
New Revision: 485114

URL: http://svn.apache.org/viewvc?view=rev&rev=485114
Log:
suppress page refresh when layout decorator or portlet decorator is changed

Modified:
    portals/jetspeed-2/trunk/src/webapp/javascript/jetspeed/widget/PageEditor.js

Modified: portals/jetspeed-2/trunk/src/webapp/javascript/jetspeed/widget/PageEditor.js
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/src/webapp/javascript/jetspeed/widget/PageEditor.js?view=diff&rev=485114&r1=485113&r2=485114
==============================================================================
--- portals/jetspeed-2/trunk/src/webapp/javascript/jetspeed/widget/PageEditor.js (original)
+++ portals/jetspeed-2/trunk/src/webapp/javascript/jetspeed/widget/PageEditor.js Sat Dec 
9 16:58:26 2006
@@ -447,6 +447,7 @@
 // ... jetspeed.widget.UpdateFragmentContentManager
 jetspeed.widget.UpdatePageInfoContentManager = function( layoutDecorator, portletDecorator,
desktopTheme, pageEditorWidget )
 {
+    this.refreshPage = false;
     this.layoutDecorator = layoutDecorator;
     this.portletDecorator = portletDecorator;
     this.desktopTheme = desktopTheme;
@@ -462,7 +463,10 @@
         if ( this.portletDecorator != null )
             queryString += "&portlet-decorator=" + escape( this.portletDecorator );
         if ( this.desktopTheme != null )
+        {
             queryString += "&theme=" + escape( this.desktopTheme );
+            this.refreshPage = true;
+        }
         var updatePageUrl = jetspeed.url.basePortalUrl() + jetspeed.url.path.AJAX_API + queryString
;
         var ajaxApiContext = new jetspeed.om.Id( "updatepage-info", { } );
         var bindArgs = {};
@@ -474,7 +478,8 @@
     {
         if ( jetspeed.url.checkAjaxApiResponse( requestUrl, data, true, "updatepage-info"
) )
         {
-            this.pageEditorWidget.refreshPage();
+            if ( this.refreshPage )
+                this.pageEditorWidget.refreshPage();
         }
     },
     notifyFailure: function( /* String */ type, /* Object */ error, /* String */ requestUrl,
/* Portlet */ portlet )



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message