Fix: use specific code for avoid conflict

This commit is contained in:
Regis Houssin 2012-11-29 18:37:37 +01:00
parent ffbeb38747
commit 3005a4f7cf

View File

@ -729,7 +729,7 @@ function confirmConstantAction(action, url, code, input, box, entity, yesButton,
modal: true,
buttons: [
{
id : yesButton,
id : 'yesButton_' + code,
text : yesButton,
click : function() {
if (action == "set") {
@ -749,7 +749,7 @@ function confirmConstantAction(action, url, code, input, box, entity, yesButton,
}
},
{
id : noButton,
id : 'noButton_' + code,
text : noButton,
click : function() {
$(this).dialog("close");
@ -759,7 +759,7 @@ function confirmConstantAction(action, url, code, input, box, entity, yesButton,
});
// For information dialog box only, hide the noButton
if (boxConfirm.info) {
$("#" + noButton).button().hide();
$("#noButton_" + code).button().hide();
}
}