mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 03:12:55 +09:00
Fix confirmation message when deleting elements in Sunstone
This commit is contained in:
1 parent
1b8307c9a4
commit
c459697b4c
1 file changed
+14
-2
@@ -758,8 +758,15 @@ function popUpConfirmDialog(target_elem){
|
||||
var value = $(target_elem).val();
|
||||
var tab_id = $(target_elem).parents('.tab').attr('id');
|
||||
var button = Sunstone.getButton(tab_id,value);
|
||||
var tip = button.tip;
|
||||
|
||||
if (button.tip == undefined)
|
||||
var tip = tr("You have to confrim this action");
|
||||
else
|
||||
var tip = button.tip
|
||||
|
||||
$('button#confirm_proceed',dialog).val(value);
|
||||
|
||||
|
||||
$('div#confirm_tip',dialog).text(tip);
|
||||
dialog.dialog("open");
|
||||
}
|
||||
@@ -772,7 +779,12 @@ function popUpConfirmWithSelectDialog(target_elem){
|
||||
var value = $(target_elem).val();
|
||||
var tab_id = $(target_elem).parents('.tab').attr('id');
|
||||
var button = Sunstone.getButton(tab_id,value);
|
||||
var tip = button.tip;
|
||||
|
||||
if (button.tip == undefined)
|
||||
var tip = tr("You have to confrim this action");
|
||||
else
|
||||
var tip = button.tip
|
||||
|
||||
var select_var = button.select();
|
||||
$('select#confirm_select',dialog).html(select_var);
|
||||
$('div#confirm_with_select_tip',dialog).text(tip);
|
||||
|
||||
Reference in new issue
Block a user