portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smi...@apache.org
Subject svn commit: r602430 - /portals/jetspeed-2/trunk/jetspeed-portal-resources/src/main/resources/webapp/javascript/jetspeed/selector.js
Date Sat, 08 Dec 2007 09:33:40 GMT
Author: smilek
Date: Sat Dec  8 01:33:40 2007
New Revision: 602430

URL: http://svn.apache.org/viewvc?rev=602430&view=rev
Log:
The following revision comments are from branches/JETSPEED-2.1.3 revisions which were not
individually checked-in to trunk
=== ---------------------------------------------------------------- ===
[ from branches/JETSPEED-2.1.3 r595411 ] | smilek | 2007-11-15 13:06:54 -0700 (Thu, 15 Nov
2007) | 1 line

major improvements to page editor (UI, config options, flow, no action layouts); support for
create-new-page-on-edit
=== ---------------------------------------------------------------- ===
[ from branches/JETSPEED-2.1.3 r583999 ] | smilek | 2007-10-11 18:36:47 -0600 (Thu, 11 Oct
2007) | 1 line

continuation of desktop overhaul
=== ---------------------------------------------------------------- ===
[ from branches/JETSPEED-2.1.3 r578913 ] | smilek | 2007-09-24 13:11:09 -0600 (Mon, 24 Sep
2007) | 1 line

moved portlet selector code out of core.js
=== ---------------------------------------------------------------- ===

Added:
    portals/jetspeed-2/trunk/jetspeed-portal-resources/src/main/resources/webapp/javascript/jetspeed/selector.js

Added: portals/jetspeed-2/trunk/jetspeed-portal-resources/src/main/resources/webapp/javascript/jetspeed/selector.js
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/jetspeed-portal-resources/src/main/resources/webapp/javascript/jetspeed/selector.js?rev=602430&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/jetspeed-portal-resources/src/main/resources/webapp/javascript/jetspeed/selector.js
(added)
+++ portals/jetspeed-2/trunk/jetspeed-portal-resources/src/main/resources/webapp/javascript/jetspeed/selector.js
Sat Dec  8 01:33:40 2007
@@ -0,0 +1,59 @@
+if(window.dojo){
+dojo.provide("jetspeed.selector");
+dojo.require("jetspeed.common");
+}
+if(!window.jetspeed){
+jetspeed={};
+}
+if(!jetspeed.selector){
+jetspeed.selector={};
+}
+jetspeed.selector.PortletDef=function(_1,_2,_3,_4,_5){
+this.portletName=_1;
+this.portletDisplayName=_2;
+this.portletDescription=_3;
+this.image=_4;
+this.count=_5;
+};
+jetspeed.selector.PortletDef.prototype={portletName:null,portletDisplayName:null,portletDescription:null,portletImage:null,portletCount:null,getId:function(){
+return this.portletName;
+},getPortletName:function(){
+return this.portletName;
+},getPortletDisplayName:function(){
+return this.portletDisplayName;
+},getPortletCount:function(){
+return this.portletCount;
+},getPortletDescription:function(){
+return this.portletDescription;
+}};
+jetspeed.selector.addNewPortletDefinition=function(_6,_7,_8){
+var _9=new jetspeed.selector.PortletAddAjaxApiCallbackCL(_6);
+var _a="?action=add&id="+escape(_6.getPortletName());
+if(_8!=null&&_8.length>0){
+_a+="&layoutid="+escape(_8);
+}
+var _b=_7+_a;
+var _c="text/xml";
+var _d=new jetspeed.om.Id("addportlet",{});
+jetspeed.url.retrieveContent({url:_b,mimetype:_c},_9,_d,jetspeed.debugContentDumpIds);
+};
+jetspeed.selector.PortletAddAjaxApiCallbackCL=function(_e){
+this.portletDef=_e;
+};
+jetspeed.selector.PortletAddAjaxApiCallbackCL.prototype={notifySuccess:function(_f,_10,_11){
+var _12=jetspeed;
+var _13=_12.url.checkAjaxApiResponse(_10,_f,["refresh"],true,"add-portlet");
+if(_13=="refresh"&&_12.page!=null){
+var _14=_12.page.getPageUrl();
+if(_14!=null){
+if(!_12.prefs.ajaxPageNavigation){
+_12.pageNavigate(_14,null,true);
+}else{
+_12.updatePage(_14,false,true);
+}
+}
+}
+},notifyFailure:function(_15,_16,_17,_18){
+dojo.raise("PortletAddAjaxApiCallbackCL error ["+_18.toString()+"] url: "+_17+" type: "+_15+jetspeed.formatError(_16));
+}};
+



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