Revision 44d38b2b
Von Moritz Bunkus vor etwa 8 Jahren hinzugefügt
js/kivi.js | ||
---|---|---|
307 | 307 |
// - id: dialog DIV ID (optional; defaults to 'jqueryui_popup_dialog') |
308 | 308 |
// - url, data, type: passed as the first three arguments to the $.ajax() call if an AJAX call is made, otherwise ignored. |
309 | 309 |
// - dialog: an optional object of options passed to the $.dialog() call |
310 |
// - load: an optional function that is called after the content has been loaded successfully (only if an AJAX call is made) |
|
310 | 311 |
ns.popup_dialog = function(params) { |
311 | 312 |
var dialog; |
312 | 313 |
|
... | ... | |
360 | 361 |
success: function(new_html) { |
361 | 362 |
dialog.html(new_html); |
362 | 363 |
dialog.removeClass('loading'); |
364 |
if (params.load) |
|
365 |
params.load(); |
|
363 | 366 |
} |
364 | 367 |
}); |
365 | 368 |
} |
Auch abrufbar als: Unified diff
kivi.popup_dialog: neuer Callback »load« nach erfolgreichem AJAX-Laden des Inhalts