diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2013-06-03 03:31:33 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2013-06-03 03:31:33 +0200 |
commit | 46d4886709a7ce41a988ef69954252e4f11ebb93 (patch) | |
tree | 81f48626d4c92434d965dbaa956eaec23f8f9446 /core | |
parent | 5f1cbc6a1ad9d7bb67b1c64418f5d5ac0ab8695d (diff) | |
download | nextcloud-server-46d4886709a7ce41a988ef69954252e4f11ebb93.tar.gz nextcloud-server-46d4886709a7ce41a988ef69954252e4f11ebb93.zip |
Set default button in oc-dialogs
Diffstat (limited to 'core')
-rw-r--r-- | core/js/oc-dialogs.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js index 456cc34ed4e..f4bc174b5eb 100644 --- a/core/js/oc-dialogs.js +++ b/core/js/oc-dialogs.js @@ -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; }; |