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({
var targetImg = $(("#proxy-connectors-grid-remoterepo-settings-edit-")
+proxyConnector.sourceRepoId().replace(/\./g,"\\\.")+"-"+proxyConnector.targetRepoId().replace(/\./g,"\\\."));
-
-
-
- //targetImg.popover();
-
- //targetImg.popover('show');
-
return tmplHtml;
}
<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>