Skip to content
Snippets Groups Projects
Commit 46d48867 authored by Thomas Tanghus's avatar Thomas Tanghus
Browse files

Set default button in oc-dialogs

parent 5f1cbc6a
Branches
No related tags found
No related merge requests found
......@@ -115,7 +115,8 @@ var OCdialogs = {
};
var buttonlist = [{
text: t('core', 'Choose'),
click: functionToCall
click: functionToCall,
defaultButton: true
},
{
text: t('core', 'Cancel'),
......@@ -164,7 +165,8 @@ var OCdialogs = {
click: function(){
if (callback !== undefined) { callback(true) };
$(dialog_id).ocdialog('close');
}
},
defaultButton: true
},
{
text: t('core', 'No'),
......@@ -181,7 +183,8 @@ var OCdialogs = {
};
buttonlist[0] = {
text: t('core', 'Ok'),
click: functionToCall
click: functionToCall,
defaultButton: true
};
break;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment