Index: branches/RC/core/admin_templates/js/script.js =================================================================== diff -u -r11576 -r11711 --- branches/RC/core/admin_templates/js/script.js (.../script.js) (revision 11576) +++ branches/RC/core/admin_templates/js/script.js (.../script.js) (revision 11711) @@ -591,11 +591,11 @@ return false; } -function std_precreate_item(prefix_special, edit_template) +function std_precreate_item(prefix_special, edit_template, $onAfterOpenPopup) { set_hidden_field(prefix_special+'_mode', 't'); if (use_popups(prefix_special, 'OnPreCreate')) { - open_popup(prefix_special, 'OnPreCreate', edit_template); + open_popup(prefix_special, 'OnPreCreate', edit_template, null, $onAfterOpenPopup); } else { opener_action('d'); @@ -604,10 +604,10 @@ // set_hidden_field(prefix_special+'_mode', ''); } -function std_new_item(prefix_special, edit_template) +function std_new_item(prefix_special, edit_template, $onAfterOpenPopup) { if (use_popups(prefix_special, 'OnNew')) { - open_popup(prefix_special, 'OnNew', edit_template); + open_popup(prefix_special, 'OnNew', edit_template, null, $onAfterOpenPopup); } else { opener_action('d'); @@ -628,10 +628,10 @@ // set_hidden_field(prefix_special+'_mode', ''); } -function std_edit_temp_item(prefix_special, edit_template) +function std_edit_temp_item(prefix_special, edit_template, $onAfterOpenPopup) { if (use_popups(prefix_special, '')) { - open_popup(prefix_special, '', edit_template); + open_popup(prefix_special, '', edit_template, null, $onAfterOpenPopup); } else { opener_action('d');