Fix confirmation message when deleting elements in Sunstone

This commit is contained in:
Daniel Molina committed 2012-12-18 13:42:49 +01:00
1 parent 1b8307c9a4
commit c459697b4c
1 file changed
+14 -2
+14 -2
View File
@@ -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);