summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2013-06-03 03:31:33 +0200
committerThomas Tanghus <thomas@tanghus.net>2013-06-03 03:31:33 +0200
commit46d4886709a7ce41a988ef69954252e4f11ebb93 (patch)
tree81f48626d4c92434d965dbaa956eaec23f8f9446 /core
parent5f1cbc6a1ad9d7bb67b1c64418f5d5ac0ab8695d (diff)
downloadnextcloud-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.js9
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;
};