mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Set default button in oc-dialogs
This commit is contained in:
parent
5f1cbc6a1a
commit
46d4886709
1 changed files with 6 additions and 3 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue