From d3af8f1a6233d6edb060f3d0913ee8c68d9abe43 Mon Sep 17 00:00:00 2001 From: dheeyi Date: Thu, 12 Mar 2015 16:40:31 -0400 Subject: [PATCH 1/2] PM-1618 Home > Documents: Al momento de arrastrar una carpeta a otra se crean carpetas vacias Causa : Listeners no adecuados(ExtJS). Solucion : Hacer uso de otros eventos de tipo Listeners(ExtJS). --- .../engine/templates/cases/casesDocuments.js | 28 ++++++++++--------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/workflow/engine/templates/cases/casesDocuments.js b/workflow/engine/templates/cases/casesDocuments.js index 9a272b7c5..481fffbbd 100755 --- a/workflow/engine/templates/cases/casesDocuments.js +++ b/workflow/engine/templates/cases/casesDocuments.js @@ -1739,6 +1739,16 @@ function copymoveCtx(e) { copymove('moveExecute'); } +var loader = new Ext.tree.TreeLoader({ + preloadChildren : true, + dataUrl : '../appFolder/appFolderAjax.php', + baseParams : { + action : 'expandNode', + sendWhat : 'dirs', + renderTree : 1 + } + }); + var documentsTab = { id : 'documents', // title : 'Documents', @@ -1772,15 +1782,7 @@ var documentsTab = { } ], // rootVisible: false, - loader : new Ext.tree.TreeLoader({ - preloadChildren : true, - dataUrl : '../appFolder/appFolderAjax.php', - baseParams : { - action : 'expandNode', - sendWhat : 'dirs', - renderTree : 1 - } - }), + loader : loader, containerScroll : true, enableDD : true, ddGroup : 'TreeDD', @@ -1834,10 +1836,10 @@ var documentsTab = { return true; } }, - 'beforenodedrop' : { - fn : function(e) { - dropEvent = e; - copymoveCtx(e); + 'nodedrop' : { + fn : function(e) { + dropEvent = e; + copymoveCtx(e); datastore.reload(); } }, From 28cd3411ad4d5c8f837dbd40ea7a413a35535415 Mon Sep 17 00:00:00 2001 From: dheeyi Date: Fri, 13 Mar 2015 13:33:09 -0400 Subject: [PATCH 2/2] PM-864, PM-865, PM-805 y PM-1848 causa : Definida previamente asi. solucion : Redefinicion y ajustes. --- .../engine/templates/oauth2/clientSetup.js | 27 +++++++++++++------ 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/workflow/engine/templates/oauth2/clientSetup.js b/workflow/engine/templates/oauth2/clientSetup.js index 79ef6c783..e0f051809 100644 --- a/workflow/engine/templates/oauth2/clientSetup.js +++ b/workflow/engine/templates/oauth2/clientSetup.js @@ -254,7 +254,7 @@ clientSetup.application = { data: [["20"], ["30"], ["40"], ["50"], ["100"]], autoLoad: true }); - + //Components var winData = new Ext.Window({ layout: "fit", @@ -289,7 +289,11 @@ clientSetup.application = { id: "txtName", name: "txtName", - fieldLabel: "Name" + fieldLabel: "Name", + validator: function(value){ + var val = (value=='')? false: true; + return val; + } }, { xtype: "label", @@ -320,8 +324,15 @@ clientSetup.application = { id: "txtWebSite", name: "txtWebSite", - fieldLabel: "Web Site", - vtype: "url" + fieldLabel: "Web Site", + validator: function (value){ + var regexpUrl = /[-a-zA-Z0-9@:%_\+.~#?&//=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?/gi; + var regexStringIp = new RegExp(regexpUrl); + var regexpIpAdress = /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/g; + var regexNumberIp = new RegExp(regexpIpAdress); + var result = (value.match(regexStringIp) || value.match(regexNumberIp))? true : false; + return result; + } }, { xtype: "label", @@ -345,7 +356,7 @@ clientSetup.application = { fieldLabel: " ", labelSeparator: "", - html: "" + "here should we return after successfully authenticating? For @Anywhere applications, only the domain specified in the callback will be used. OAuth 1.0a applications should explicitly specify their oauth_callback URL on the request token step, regardless of the value given here. To restrict your application from using callbacks, leave this field blank." + "" + html: "" + "URL where redirected after successfully authenticating (calling the {workspace}/oauth2/authorize endpoint). This URL typically contains code to get the access token from the {workspace}/oauth2/token endpoint. To prevent your application from using callbacks, leave this field blank." + "" } ] }) @@ -499,7 +510,7 @@ clientSetup.application = { var btnDetail = new Ext.Action({ id: "btnDetail", - text: _("ID_DETAIL"), + text: _("ID_DETAILS"), iconCls: "button_menu_ext ss_sprite ss_zoom", handler: function () @@ -695,7 +706,7 @@ clientSetup.application = { items: [grdpnlMain] }); } + } -Ext.onReady(clientSetup.application.init, clientSetup.application); - +Ext.onReady(clientSetup.application.init, clientSetup.application); \ No newline at end of file