mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-27 10:50:10 +03:00
Feature #3471: Save the initialize_func when the form is reset
This commit is contained in:
parent
6fb5678fe6
commit
eb629d5d69
@ -180,6 +180,8 @@ var Sunstone = {
|
||||
|
||||
var form_obj = SunstoneCfg["form_panels"][form_name];
|
||||
|
||||
$(".right-form", context).data("initialize_func", initialize_func);
|
||||
|
||||
$(".reset_button", context).show();
|
||||
|
||||
if (action) {
|
||||
@ -986,7 +988,8 @@ function insertButtonsInTab(tab_name, panel_name, panel_buttons, custom_context)
|
||||
|
||||
$('#'+custom_id+'reset_button', action_block).on("click", function(){
|
||||
var form_name = $(".right-form", context).attr("form_name");
|
||||
Sunstone.popUpFormPanel(form_name, tab_name, null, true)
|
||||
var initialize_func = $(".right-form", context).data("initialize_func");
|
||||
Sunstone.popUpFormPanel(form_name, tab_name, null, true, initialize_func);
|
||||
|
||||
return false;
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user