From: Thomas Tanghus Date: Mon, 3 Jun 2013 01:31:33 +0000 (+0200) Subject: Set default button in oc-dialogs X-Git-Tag: v6.0.0alpha2~689^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=46d4886709a7ce41a988ef69954252e4f11ebb93;p=nextcloud-server.git Set default button in oc-dialogs --- 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; };