mirror of https://github.com/apache/archiva.git
correctly close popover when mouseout
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1377984 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d897c8bcfa
commit
7998e01615
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js
|
@ -370,7 +370,7 @@ define("archiva.proxy-connectors",["jquery","i18n","jquery.tmpl","bootstrap","jq
|
|||
|
||||
showSettings=function(proxyConnector,targetContentStartId, targetImgStartId,theProxyConnectorsViewModel){
|
||||
var id = (targetContentStartId?targetContentStartId:"#proxy-connectors-grid-remoterepo-settings-content-")
|
||||
+proxyConnector.sourceRepoId()+"-"+proxyConnector.targetRepoId()
|
||||
+proxyConnector.sourceRepoId().replace(/\./g,"\\\.")+"-"+proxyConnector.targetRepoId()
|
||||
.replace(/\./g,"\\\.");
|
||||
|
||||
|
||||
|
@ -383,11 +383,11 @@ define("archiva.proxy-connectors",["jquery","i18n","jquery.tmpl","bootstrap","jq
|
|||
proxyConnector:ko.toJS(proxyConnector)
|
||||
} ).html();
|
||||
|
||||
targetContent.append(tmplHtml);
|
||||
//targetContent.append(tmplHtml);
|
||||
|
||||
var targetImg = $((targetImgStartId?targetImgStartId:"#proxy-connectors-grid-remoterepo-settings-edit-")
|
||||
+proxyConnector.sourceRepoId()+"-"+proxyConnector.targetRepoId().replace(/\./g,"\\\."));
|
||||
targetImg.attr("data-content",targetContent.html());
|
||||
+proxyConnector.sourceRepoId().replace(/\./g,"\\\.")+"-"+proxyConnector.targetRepoId().replace(/\./g,"\\\."));
|
||||
targetImg.attr("data-content",tmplHtml);//targetContent.html());
|
||||
targetImg.popover(
|
||||
{
|
||||
placement: "left",
|
||||
|
@ -399,6 +399,14 @@ define("archiva.proxy-connectors",["jquery","i18n","jquery.tmpl","bootstrap","jq
|
|||
|
||||
}
|
||||
|
||||
hideSettings=function(proxyConnector){
|
||||
$.log('hideSettings:'+proxyConnector.sourceRepoId()+","+proxyConnector.targetRepoId());
|
||||
//var targetImg = $("#proxy-connectors-grid-remoterepo-settings-edit-")
|
||||
// +proxyConnector.sourceRepoId().replace(/\./g,"\\\.")+"-"+proxyConnector.targetRepoId().replace(/\./g,"\\\.");
|
||||
$("#body_content" ).find(".popover" ).hide();
|
||||
//targetImg.attr("data-content",'');//.popover('hide');
|
||||
}
|
||||
|
||||
this.displaySettings=function(sourceRepoId,targetRepoId,targetContentStartId, targetImgStartId){
|
||||
var proxyConnector=getProxyConnector(sourceRepoId,targetRepoId);
|
||||
showSettings(proxyConnector,targetContentStartId,targetImgStartId);
|
||||
|
|
|
@ -716,9 +716,7 @@
|
|||
<td>
|
||||
<img src="images/utilities-system-monitor-22-22.png" id="proxy-connectors-grid-remoterepo-settings-edit-${row.sourceRepoId()}-${row.targetRepoId()}"
|
||||
data-original-title="${$.i18n.prop('proxy-connectors.grid.remoterepo.settings.popover.title')}"
|
||||
data-bind="event: { mouseover: function(){ showSettings(row)},}">
|
||||
<div id="proxy-connectors-grid-remoterepo-settings-content-${row.sourceRepoId()}-${row.targetRepoId()}"
|
||||
style="display:none"></div>
|
||||
data-bind="event: { mouseover: function(){ showSettings(row)},mouseout: function(){hideSettings(row)},}">
|
||||
</td>
|
||||
<td>
|
||||
<a data-bind="click: function(){ editProxyConnector(row)}" href="#">
|
||||
|
|
Loading…
Reference in New Issue