]> source.dussan.org Git - archiva.git/commitdiff
correctly close popover
authorOlivier Lamy <olamy@apache.org>
Tue, 28 Aug 2012 14:24:51 +0000 (14:24 +0000)
committerOlivier Lamy <olamy@apache.org>
Tue, 28 Aug 2012 14:24:51 +0000 (14:24 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1378150 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/repositories.html

index 42fe981261bf245b58d1f017aedb287360c20eaa..04e7f8cc0103318761b99508f232f3bf3fe495ff 100644 (file)
@@ -367,15 +367,11 @@ define("archiva.proxy-connectors",["jquery","i18n","jquery.tmpl","bootstrap","jq
       var res = ($.isArray(proxyConnectors) && proxyConnectors.length>0) ? proxyConnectors[0]:new ProxyConnector();
       return res;
     }
-
-    showSettings=function(proxyConnector,targetContentStartId, targetImgStartId,theProxyConnectorsViewModel){
+    showSettings=function(){
       $.log("showSettings");
-    }
-
-    hideSettings=function(proxyConnector){
       $("#body_content" ).find(".popover" ).hide();
+      //$("#main-content").find("[id^='proxy-connectors-grid-remoterepo-settings-edit-']" ).popover("hide");
     }
-
     buildSettings=function(proxyConnector){
       var tmplHtml = $("#proxy-connectors-remote-settings-popover-tmpl")
                                            .tmpl({
@@ -385,13 +381,6 @@ define("archiva.proxy-connectors",["jquery","i18n","jquery.tmpl","bootstrap","jq
 
       var targetImg = $(("#proxy-connectors-grid-remoterepo-settings-edit-")
                             +proxyConnector.sourceRepoId().replace(/\./g,"\\\.")+"-"+proxyConnector.targetRepoId().replace(/\./g,"\\\."));
-
-
-
-      //targetImg.popover();
-
-      //targetImg.popover('show');
-
       return tmplHtml;
     }
 
index f6aa6eba6eb9eaeb41b063cd40ab8cfb9321c573..c2f083c55352d0086b437ced7642178d7da189d5 100644 (file)
       <td>
           <a class="btn btn-info btn-mini" id="proxy-connectors-grid-remoterepo-settings-edit-${row.sourceRepoId()}-${row.targetRepoId()}"
                   data-original-title="${$.i18n.prop('proxy-connectors.grid.remoterepo.settings.popover.title')}"
-                  data-content="${buildSettings(row)}">
+                  data-content="${buildSettings(row)}" data-bind="click: showSettings">
               <i class="icon-question-sign icon-white"></i>
           </a>