1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

Fix reset buttons

This commit is contained in:
Daniel Molina 2014-03-07 12:59:30 +01:00
parent 5184030a96
commit 74d72c9cd3
7 changed files with 3 additions and 14 deletions

View File

@ -964,7 +964,6 @@ function setupCreateDatastoreDialog(){
});
$('#wizard_ds_reset_button').click(function(){
$create_datastore_dialog.foundation('reveal', 'close');
$create_datastore_dialog.html("");
setupCreateDatastoreDialog();
@ -974,7 +973,6 @@ function setupCreateDatastoreDialog(){
});
$('#advanced_ds_reset_button').click(function(){
$create_datastore_dialog.foundation('reveal', 'close');
$create_datastore_dialog.html("");
setupCreateDatastoreDialog();

View File

@ -1078,7 +1078,6 @@ function setupCreateGroupDialog(){
setupTips($create_group_dialog);
$('#create_group_reset_button').click(function(){
$create_group_dialog.foundation('reveal', 'close');
$create_group_dialog.html("");
setupCreateGroupDialog();

View File

@ -897,7 +897,6 @@ function setupCreateHostDialog(){
});
$('#wizard_host_reset_button').click(function(){
$create_host_dialog.foundation('reveal', 'close');
$create_host_dialog.html("");
setupCreateHostDialog();

View File

@ -1140,15 +1140,13 @@ function initialize_create_image_dialog(dialog) {
});
$('#wizard_image_reset_button').click(function(){
dialog.foundation('reveal', 'close');
//dialog.html("");
dialog.html("");
setupCreateImageDialog();
popUpCreateImageDialog();
});
$('#advanced_image_reset_button').click(function(){
dialog.foundation('reveal', 'close');
dialog.html("");
setupCreateImageDialog();

View File

@ -1114,8 +1114,7 @@ function setupCreateServiceTemplateDialog(){
});
$('#create_service_template_reset', dialog).click(function(){
$create_service_template_dialog.foundation('reveal', 'close');
$create_service_template_dialog.html("");
dialog.html("");
setupCreateServiceTemplateDialog();
popUpCreateServiceTemplateDialog();
@ -1396,7 +1395,7 @@ function fillUpUpdateServiceTemplateDialog(request, response){
service_template_to_update_id = service_template.ID;
dialog.foundation().foundation('reveal', 'open');
dialog.foundation('reveal', 'open');
}
// Set the autorefresh interval for the datatable

View File

@ -3515,14 +3515,12 @@ function initialize_create_template_dialog(dialog) {
var tabs = $( "#template_create_tabs", dialog)//.tabs().addClass("ui-tabs-vertical");
$('#template_template_reset_button', dialog).click(function(){
dialog.foundation('reveal', 'close');
dialog.html("");
setupCreateTemplateDialog();
popUpCreateTemplateDialog();
});
$('#template_template_reset_button_update', dialog).click(function(){
dialog.foundation('reveal', 'close');
dialog.html("");
setupCreateTemplateDialog();

View File

@ -1309,7 +1309,6 @@ function setupCreateVNetDialog() {
});
$('#wizard_vnet_reset_button').click(function(){
$create_vn_dialog.foundation('reveal', 'close');
$create_vn_dialog.html("");
setupCreateVNetDialog();
@ -1317,7 +1316,6 @@ function setupCreateVNetDialog() {
});
$('#advanced_vnet_reset_button').click(function(){
$create_vn_dialog.foundation('reveal', 'close');
$create_vn_dialog.html("");
setupCreateVNetDialog();