aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2012-08-28 14:24:51 +0000
committerOlivier Lamy <olamy@apache.org>2012-08-28 14:24:51 +0000
commite94432f919d4039f545eefbde5b8eba087e7e089 (patch)
tree766de4dd20a28de2f6fba718f422b5f9e7b8d8fd
parenta1dd76ba3d8aa605cab6bb30e0c15c2e635c384b (diff)
downloadarchiva-e94432f919d4039f545eefbde5b8eba087e7e089.tar.gz
archiva-e94432f919d4039f545eefbde5b8eba087e7e089.zip
correctly close popover
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1378150 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/proxy-connectors.js15
-rw-r--r--archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/repositories.html2
2 files changed, 3 insertions, 14 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 42fe98126..04e7f8cc0 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
@@ -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;
}
diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/repositories.html b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/repositories.html
index f6aa6eba6..c2f083c55 100644
--- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/repositories.html
+++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/repositories.html
@@ -716,7 +716,7 @@
<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>