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,"\\\.");
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",
}
+ 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);
<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="#">