From: Olivier Lamy Date: Tue, 7 Feb 2012 18:24:32 +0000 (+0000) Subject: [MRM-1576] rewrite proxies connector page X-Git-Tag: archiva-1.4-M3~1350 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f5aecd525d67e94adf5c5c2cbb525921c5be471f;p=archiva.git [MRM-1576] rewrite proxies connector page remove testing stuff. git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1241545 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/proxy-connectors.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/proxy-connectors.js index 1ad691917..2c05664f5 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/proxy-connectors.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/proxy-connectors.js @@ -333,49 +333,3 @@ $(function() { } }); - -(function () { - - - // Templates used for rendering - var templateEngine = new ko.jqueryTmplTemplateEngine(); - TemporaryViewModel=function(currentPolicyInformation,selectedOption){ - var self=this; - this.policyInformation=currentPolicyInformation; - this.selectedValue=selectedOption; - isSelectedOption=function(id){ - return (id==self.selectedValue); - } - } - ko.bindingHandlers.proxyConnectorPolicies = { - update: function(element, valueAccessor, allBindingsAccessor, proxyConnectorViewModel) { - // This will be called once when the binding is first applied to an element, - // and again whenever the associated observable changes value. - // Update the DOM element based on the supplied values here. - var jqueryElement=$(element); - $.log("update:"+proxyConnectorViewModel.proxyConnectorsViewModel.managedRepositories().length); - // Empty the element - while(element.firstChild) { - ko.removeNode(element.firstChild); - } - var policyInformations = proxyConnectorViewModel.proxyConnectorsViewModel.policyInformations(); - for (i=0;i - - \ No newline at end of file