profoundjs 7.25.0 → 7.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -895,7 +895,7 @@ T.g.Ld=function(c){T.g.j.msg=pui.getLanguageText("runtimeText","please wait");T.
895
895
  T.g.sc=function(c,a){var d=T.g.F.getTopToolbar();d.items.each(function(e){e.Ba&&d.remove(e)});1==T.testingMode&&a&&(a.attributes.tc?(d.add(new Ext.Toolbar.Spacer({Ba:!0})),d.add(new Ext.Toolbar.Spacer({Ba:!0})),d.add({id:"Atrium-nav-new-test-button",text:"New Test...",icon:"/profoundui/proddata/images/FlatIcons/16x16/add.png",iconCls:"atrium-nav-new-test-button",handler:T.g.pb,Ba:!0})):a.attributes.Ca&&(d.add(new Ext.Toolbar.Spacer({Ba:!0})),d.add(new Ext.Toolbar.Spacer({Ba:!0})),c=T.g.rc(a),d.add({text:"Actions",
896
896
  icon:"/profoundui/proddata/images/FlatIcons/chart_organisation.png",menu:c,Ba:!0})));d.doLayout()};T.g.jc=function(c,a){c&&c.attributes.Ca?(a.stopEvent(),T.g.rc(c).showAt(a.getXY())):c&&c.attributes.tc&&(a.stopEvent(),c.select(),(new Ext.menu.Menu({items:[{text:"New Test...",icon:"/profoundui/proddata/images/FlatIcons/16x16/add.png",handler:T.g.pb},{text:"Refresh",icon:"/profoundui/proddata/images/FlatIcons/refresh.png",handler:function(){c.reload()}}]})).showAt(a.getXY()))};
897
897
  T.g.ac=function(c,a,d,e){return a.attributes.Ca&&d===e?!0:!1};T.g.wc=function(c,a,d,e){if(d===e&&a.attributes.Ca){var f=[];e.eachChild(function(g){g.attributes.Ca&&f.push(g.id.replace("test-",""))});T.g.j.msg="Reordering tests...";T.g.j.show();c={};c.parentId=e.id.replace("folder-","");c.testItems=f;Ext.Ajax.request({url:"/auto-testing/reorder-tests",method:"POST",jsonData:c,success:function(){T.g.j.hide()},failure:function(){T.g.j.hide();Ext.Msg.alert("Error","Failed to reorder tests.")}})}};
898
- T.g.Lb=function(c){var a=window.location.protocol+"//"+window.location.hostname,d=new Ext.data.JsonStore({url:"/auto-testing/env-list",root:"data",idProperty:"id",fields:[{name:"id",type:"string"},{name:"envname",type:"string"},{name:"envdesc",type:"string"},{name:"jobdesc",type:"string"},{name:"pjsprotol",type:"string"},{name:"pjshost",type:"string"},{name:"pjsport",type:"string"}],autoLoad:!0,listeners:{load:function(g){g.filterBy(function(h){return 0===(h.get("pjsprotol")+"://"+h.get("pjshost")).indexOf(a)})}}}),
898
+ T.g.Lb=function(c){var a=window.location.protocol+"//"+window.location.hostname,d=new Ext.data.JsonStore({url:"/auto-testing/env-list",root:"data",idProperty:"id",fields:[{name:"id",type:"string"},{name:"envname",type:"string"},{name:"envdesc",type:"string"},{name:"jobdesc",type:"string"},{name:"pjsprotol",type:"string"},{name:"pjshost",type:"string"},{name:"pjsport",type:"string"}],autoLoad:!0,listeners:{load:function(g){g.filterBy(function(h){return 0===(h.get("pjsprotol")+"://"+h.get("pjshost")).toLowerCase().indexOf(a.toLowerCase())})}}}),
899
899
  e=new Ext.grid.GridPanel({store:d,columns:[{header:"Environment ID",dataIndex:"id",width:120,sortable:!0},{header:"Environment Name",dataIndex:"envname",width:150,sortable:!0},{header:"Description",dataIndex:"envdesc",width:200,sortable:!0},{header:"Job Description",dataIndex:"jobdesc",width:150,sortable:!0},{header:"Server URL",dataIndex:"pjsprotol",width:200,renderer:function(g,h,l){g=l.get("pjsprotol");h=l.get("pjshost");l=l.get("pjsport");return g+"://"+h+":"+l},sortable:!0}],stripeRows:!0,loadMask:!0,
900
900
  autoScroll:!0,listeners:{rowdblclick:function(g,h){g=g.getStore().getAt(h);f.close();c(g)}}}),f=new Ext.Window({title:"Select an Environment",layout:"fit",width:800,height:400,modal:!0,items:[e],buttons:[{text:"Select",handler:function(){var g=e.getSelectionModel().getSelected();g?(f.close(),c(g)):Ext.Msg.alert("No Selection","Please select an environment.")}},{text:"Close",handler:function(){f.close()}}]});f.show()};
901
901
  T.g.Mb=function(c,a,d,e){function f(k){k=k.get("arid");var n=c.attributes.text;"function"===typeof e?e(k):T.action.R("/auto-testing/work-with-test?runid="+k,!1,"Work with Run ("+n+")",null,!1,!0);m.close()}var g=c.id.replace("test-",""),h=new Ext.data.JsonStore({url:"/auto-testing/run-list",root:"data",totalProperty:"total",idProperty:"arid",remoteSort:!0,fields:[{name:"arid",type:"string"},{name:"armode",type:"string"},{name:"araction",type:"string"},{name:"arenv",type:"string"},{name:"arstart",