portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smi...@apache.org
Subject svn commit: r485148 - in /portals/jetspeed-2/trunk/src/webapp/javascript/jetspeed: desktop/core.js widget/PageEditor.js
Date Sun, 10 Dec 2006 08:54:34 GMT
Author: smilek
Date: Sun Dec 10 00:54:34 2006
New Revision: 485148

URL: http://svn.apache.org/viewvc?view=rev&rev=485148
Log:
added path query parameter with value of current page to all appropriate ajax api requests

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

Modified: portals/jetspeed-2/trunk/src/webapp/javascript/jetspeed/desktop/core.js
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/src/webapp/javascript/jetspeed/desktop/core.js?view=diff&rev=485148&r1=485147&r2=485148
==============================================================================
--- portals/jetspeed-2/trunk/src/webapp/javascript/jetspeed/desktop/core.js (original)
+++ portals/jetspeed-2/trunk/src/webapp/javascript/jetspeed/desktop/core.js Sun Dec 10 00:54:34
2006
@@ -628,6 +628,7 @@
     if ( contentListener == null )
         contentListener = new jetspeed.om.PortletActionsContentListener();
     var queryString = "?action=getactions";
+    queryString += "&path=" + escape( jetspeed.page.getPath() );
     if ( portletEntityIds == null )
         portletEntityIds = jetspeed.page.getPortletIds();
     for ( var i = 0 ; i < portletEntityIds.length ; i++ )
@@ -649,6 +650,7 @@
         queryString += "&state=" + changeActionState;
     if ( changeActionMode != null )
         queryString += "&mode=" + changeActionMode;
+    queryString += "&path=" + escape( jetspeed.page.getPath() );
     var changeActionUrl = jetspeed.url.basePortalUrl() + jetspeed.url.path.AJAX_API + queryString
;
     var mimetype = "text/xml";
     var ajaxApiContext = new jetspeed.om.Id( "changeaction", { } );

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=485148&r1=485147&r2=485148
==============================================================================
--- portals/jetspeed-2/trunk/src/webapp/javascript/jetspeed/widget/PageEditor.js (original)
+++ portals/jetspeed-2/trunk/src/webapp/javascript/jetspeed/widget/PageEditor.js Sun Dec 10
00:54:34 2006
@@ -329,6 +329,7 @@
     getContent: function()
     {
         var queryString = "?action=updatepage&method=remove";
+        queryString += "&path=" + escape( jetspeed.page.getPath() );
         var removePageUrl = jetspeed.url.basePortalUrl() + jetspeed.url.path.AJAX_API + queryString
;
         var ajaxApiContext = new jetspeed.om.Id( "updatepage-remove-page", { } );
         var bindArgs = {};
@@ -423,6 +424,7 @@
                 queryString += "&layout=" + escape( this.layoutName );
             if ( this.layoutSizes != null )
                 queryString += "&sizes=" + escape( this.layoutSizes );
+            queryString += "&path=" + escape( jetspeed.page.getPath() );
             var updatePageUrl = jetspeed.url.basePortalUrl() + jetspeed.url.path.AJAX_API
+ queryString ;
             var ajaxApiContext = new jetspeed.om.Id( "updatepage-update-fragment", { } );
             var bindArgs = {};
@@ -467,6 +469,7 @@
             queryString += "&theme=" + escape( this.desktopTheme );
             this.refreshPage = true;
         }
+        queryString += "&path=" + escape( jetspeed.page.getPath() );
         var updatePageUrl = jetspeed.url.basePortalUrl() + jetspeed.url.path.AJAX_API + queryString
;
         var ajaxApiContext = new jetspeed.om.Id( "updatepage-info", { } );
         var bindArgs = {};
@@ -501,6 +504,7 @@
         if ( this.portletEntityId != null )
         {
             var queryString = "?action=remove&id=" + this.portletEntityId;
+            queryString += "&path=" + escape( jetspeed.page.getPath() );
             var removePortletUrl = jetspeed.url.basePortalUrl() + jetspeed.url.path.AJAX_API
+ queryString ;
             var ajaxApiContext = new jetspeed.om.Id( "removeportlet", { } );
             var bindArgs = {};



---------------------------------------------------------------------
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