]> source.dussan.org Git - archiva.git/commitdiff
prevent tooltip not removed
authorOlivier Lamy <olamy@apache.org>
Thu, 29 Mar 2012 12:16:14 +0000 (12:16 +0000)
committerOlivier Lamy <olamy@apache.org>
Thu, 29 Mar 2012 12:16:14 +0000 (12:16 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1306803 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/proxy-connectors.js
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/proxy-connectors.html

index 9d214ca08c0f6a2d0d2fd15ba4ddc16cad8bab6d..ff4dadf6aef25fe709d3374048a3ad73f13b77f1 100644 (file)
@@ -38,6 +38,7 @@ define("archiva.proxy-connectors",["jquery","i18n","jquery.tmpl","bootstrap","jq
     //private String proxyId;
     this.proxyId=ko.observable(proxyId);
     this.proxyId.subscribe(function(newValue){
+      $.log("proxyId modified");
       self.modified(true);
     });
 
@@ -78,23 +79,19 @@ define("archiva.proxy-connectors",["jquery","i18n","jquery.tmpl","bootstrap","jq
     });
 
     this.modified=ko.observable(false);
-    //this.modified.subscribe(function(newValue){$.log("ProxyConnector modified:"+newValue)});
 
     this.updatePolicyEntry=function(key,value){
       $.log("updatePolicyEntry:"+key+":"+value);
       var found=false;
       for(var i=0;i<self.policiesEntries().length;i++){
-        $.log('loop policiesEntries:'+self.policiesEntries()[i].key);
         if (self.policiesEntries()[i].key==key){
           self.policiesEntries()[i].value=value;
-          $.log("really updatedPolicyEntry:"+key+":"+self.policiesEntries()[i].value)
           found=true;
           self.modified(true);
         }
       }
       if(!found){
         self.policiesEntries().push(new Entry(key,value));
-        $.log("added updatedPolicyEntry:"+key+":"+self.policiesEntries()[i].value());
       }
     }
 
@@ -284,7 +281,6 @@ define("archiva.proxy-connectors",["jquery","i18n","jquery.tmpl","bootstrap","jq
     this.remoteRepositories=ko.observableArray([]);
     this.networkProxies=ko.observableArray([]);
 
-
     this.bulkSave=function(){
       return getModifiedProxyConnectors().length>0;
     }
@@ -437,7 +433,7 @@ define("archiva.proxy-connectors",["jquery","i18n","jquery.tmpl","bootstrap","jq
         data: self.proxyConnectors,
         pageSize: 5,
         gridUpdateCallBack: function(){
-          $("#main-content #proxyConnectorsTable [title]").tooltip();
+          //$("#main-content #proxyConnectorsTable [title]").tooltip();
         }
       });
       var mainContent = $("#main-content");
index c9d1920f004b65fd88afc982486cfbf06da241b0..af56631ef14486c377fa9430926c05c0ba2843d7 100644 (file)
                   <tr>
                     <td data-bind="text: name"></td>
                     <td>
-                      <select
-                              data-bind="options: getPolicyOptions(id()),value:getSelectedPolicyOption(id()),
-                              attr: { id: 'policy-'+id() },event: { change: function(){ changePolicyOption(id())},}"
-                              ></select>
+                      <select data-bind="options: getPolicyOptions(id()),value:getSelectedPolicyOption(id()),
+                              attr: { id: 'policy-'+id() },event: { change: function(){ changePolicyOption(id())},}">
+                      </select>
                     </td>
                   </tr>
               </tbody>