Skip to content
Snippets Groups Projects
Commit 706cff6d authored by Kurund Jalmi's avatar Kurund Jalmi
Browse files

worked on CRM-12357, fixed position of dialog and also added new param to...

worked on CRM-12357, fixed position of dialog and also added new param to modify default label for CRM.confirm
parent 2678caac
No related branches found
No related tags found
No related merge requests found
......@@ -704,8 +704,9 @@ CRM.validate = CRM.validate || {
* @param options {object|void} Override defaults, keys include 'title', 'message',
* see jQuery.dialog for full list of available params
*/
CRM.confirm = function (buttons, options) {
CRM.confirm = function (buttons, options, cancelLabel) {
var dialog, callbacks = {};
cancelLabel = cancelLabel || ts('Cancel');
var settings = {
title: ts('Confirm Action'),
message: ts('Are you sure you want to continue?'),
......@@ -716,7 +717,8 @@ CRM.validate = CRM.validate || {
},
buttons: {}
};
settings.buttons[ts('Cancel')] = function () {
settings.buttons[cancelLabel] = function () {
dialog.dialog('close');
};
options = options || {};
......
......@@ -103,9 +103,10 @@
,{
title: ts('Change Activity Status'),
message: o,
width: 'auto'
}
width : "680px", // don't remove px
height: "560"
},
ts('Done')
);
return false;
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment