FCLT#57200 openCustomDetail er weer uit, werkt niet echt lekker
svn path=/Website/branches/v2019.1/; revision=41955
This commit is contained in:
@@ -792,50 +792,6 @@ var FcltMgr =
|
||||
}
|
||||
},
|
||||
|
||||
// Opent een custom modal dialoog in de huidige 'detailManager'
|
||||
openCustomDetail: function(jQueryElem, params)
|
||||
{
|
||||
var detailMgr = FcltMgr.detailManager();
|
||||
|
||||
if (!detailMgr.window.$.fn.dialog)
|
||||
detailMgr = FcltMgr; // Hopen dat we hem zelf hebben
|
||||
|
||||
if (!detailMgr.window.$.fn.dialog)
|
||||
FcltMgr.alert("Internal error: jQuery-ui mist mogelijk in " + window.location.href);
|
||||
|
||||
detailMgr._openCustomDetail(jQueryElem, params);
|
||||
},
|
||||
|
||||
_openCustomDetail: function(jQueryElem, params)
|
||||
{
|
||||
params = params || {};
|
||||
|
||||
if (!("resizable" in params))
|
||||
params.resizable = true;
|
||||
if (!("width" in params))
|
||||
params.width = 500;
|
||||
|
||||
if (params.noClose)
|
||||
{
|
||||
params.closeOnEscape = false;
|
||||
params.open = function(event, ui) { $(".ui-dialog-titlebar-close").hide(); }
|
||||
}
|
||||
else
|
||||
{
|
||||
params.open = function(event, ui)
|
||||
{
|
||||
$(".ui-dialog-titlebar-close").hide();
|
||||
$(".ui-dialog-titlebar").append("<div class=\"fclt-icon-close\"><i class=\"fa fa-lg fa-times\"> </i></div>")
|
||||
.addClass("has-fclt-icon-close");
|
||||
$(".fclt-icon-close").on("click", function () { FcltMgr.closeDetail(window, { cancel: true }); });
|
||||
}
|
||||
}
|
||||
|
||||
params.position = { my: "center", at: "center", of: window };
|
||||
|
||||
$(jQueryElem).dialog(params);
|
||||
},
|
||||
|
||||
dialogArguments: function()
|
||||
{
|
||||
return parent.FcltMgr._modalParams[parent.FcltMgr._modalCount];
|
||||
|
||||
@@ -275,8 +275,15 @@ if (mld_key == -1 || copy)
|
||||
close: dialogClose,
|
||||
resizable: false
|
||||
};
|
||||
|
||||
FcltMgr.openCustomDetail($("div#dmodal"), params);
|
||||
params.open = function(event, ui)
|
||||
{
|
||||
$(".ui-dialog-titlebar-close").hide();
|
||||
$(".ui-dialog-titlebar").append("<div class=\"fclt-icon-close\"><i class=\"fa fa-lg fa-times\"> </i></div>")
|
||||
.addClass("has-fclt-icon-close");
|
||||
$(".fclt-icon-close").on("click", function () { FcltMgr.closeDetail(window, { cancel: true }); });
|
||||
}
|
||||
FcltMgr.fixActiveelementError();
|
||||
$("div#dmodal").dialog(params).dialog("open");
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user