summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2013-09-18 17:13:07 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2013-09-18 17:13:07 +0200
commit64cc13a8d35a6350494a81e012accabb61bb8d47 (patch)
tree29abf36dda9a24c83add7d2b29278cc549646f8a /core
parent715846626eb931f086fbc952b33031f706b4547a (diff)
downloadnextcloud-server-64cc13a8d35a6350494a81e012accabb61bb8d47.tar.gz
nextcloud-server-64cc13a8d35a6350494a81e012accabb61bb8d47.zip
allow passing classes to buttons
Diffstat (limited to 'core')
-rw-r--r--core/js/jquery.ocdialog.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/js/jquery.ocdialog.js b/core/js/jquery.ocdialog.js
index f1836fd4727..02cd6ac1466 100644
--- a/core/js/jquery.ocdialog.js
+++ b/core/js/jquery.ocdialog.js
@@ -103,6 +103,9 @@
}
$.each(value, function(idx, val) {
var $button = $('<button>').text(val.text);
+ if (val.classes) {
+ $button.addClass(val.classes);
+ }
if(val.defaultButton) {
$button.addClass('primary');
self.$defaultButton = $button;