mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 20:02:38 +09:00
feature #2746: Fix one flow template reset button
This commit is contained in:
1 parent
ee8f8a67a3
commit
f9ff5002ef
1 file changed
+9
-9
@@ -1114,7 +1114,7 @@ function setupCreateServiceTemplateDialog(){
|
||||
});
|
||||
|
||||
$('#create_service_template_reset', dialog).click(function(){
|
||||
dialog.html("");
|
||||
dialog.remove();
|
||||
setupCreateServiceTemplateDialog();
|
||||
|
||||
popUpCreateServiceTemplateDialog();
|
||||
@@ -1286,21 +1286,21 @@ function popUpUpdateServiceTemplateDialog() {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!$create_service_template_dialog) {
|
||||
setupCreateServiceTemplateDialog();
|
||||
} else {
|
||||
$create_service_template_dialog.remove();
|
||||
setupCreateServiceTemplateDialog();
|
||||
}
|
||||
|
||||
// Get proper cluster_id
|
||||
var template_id = ""+selected_nodes[0];
|
||||
|
||||
Sunstone.runAction("ServiceTemplate.show_to_update", template_id);
|
||||
}
|
||||
|
||||
|
||||
function fillUpUpdateServiceTemplateDialog(request, response){
|
||||
if (!$create_service_template_dialog) {
|
||||
setupCreateServiceTemplateDialog();
|
||||
} else {
|
||||
$("#create_service_template_reset", $create_service_template_dialog).click();
|
||||
}
|
||||
|
||||
var dialog = $create_service_template_dialog;
|
||||
var dialog = $('#create_service_template_dialog',dialogs_context);
|
||||
|
||||
$("#create_service_template_header", dialog).hide();
|
||||
$("#update_service_template_header", dialog).show();
|
||||
|
||||
Reference in new issue
Block a user