Revision 56913208
Von Moritz Bunkus vor etwa 8 Jahren hinzugefügt
js/kivi.js | ||
---|---|---|
params.dialog || { },
|
||
{ // Options that must not be changed:
|
||
close: function(event, ui) {
|
||
dialog.dialog('close');
|
||
|
||
if (custom_close)
|
||
custom_close();
|
||
|
||
if (params.url || params.html)
|
||
dialog.remove();
|
||
else
|
||
dialog.dialog('close');
|
||
}
|
||
});
|
||
|
Auch abrufbar als: Unified diff
kivi.popup_dialog: Dialog vor »custom close function« schließen
Wenn die »custom close function« den Dialog im DOM verschieben möchte,
so macht sie das mit $dlg.remove().appendTo('#new_parent_id'). Dabei
geht aber die Dialog-Initialisierung flöten.
Wird also erst anschließend $dlg.dialog('close') ausgeführt, so hagelt
das eine Fehlermeldung.