From eac4e151dbeb185a51277ec2f633d418b227d084 Mon Sep 17 00:00:00 2001 From: Daniel Molina Date: Tue, 26 Feb 2013 16:15:52 +0100 Subject: [PATCH] feature #1664: Fix Vm actions button tip --- src/sunstone/public/js/sunstone.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/sunstone/public/js/sunstone.js b/src/sunstone/public/js/sunstone.js index 1666068f96..fe9398e869 100644 --- a/src/sunstone/public/js/sunstone.js +++ b/src/sunstone/public/js/sunstone.js @@ -791,9 +791,10 @@ function setupConfirmDialogs(){
\
'+tr("Do you want to proceed?")+'
\
\ +
\
\ - \ - \ + \ + \
\ '); @@ -812,7 +813,7 @@ function setupConfirmDialogs(){ //if a cancel button is pressed, we close the dialog. $('button.confirm_cancel',dialog).click(function(){ - $(this).parents('div:ui-dialog').trigger('reveal:close'); + $(this).parents('div#confirm_dialog').trigger('reveal:close'); return false; }); @@ -913,11 +914,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 = tr("You have to confrim this action"); - if (button.tip == undefined) - var tip = tr("You have to confrim this action"); - else - 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);