From f5aecd525d67e94adf5c5c2cbb525921c5be471f Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Tue, 7 Feb 2012 18:24:32 +0000 Subject: [PATCH] [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 --- .../webapp/js/archiva/proxy-connectors.js | 46 ------------------- .../archiva/templates/proxy-connectors.html | 19 -------- 2 files changed, 65 deletions(-) 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 -- 2.39.5