diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-09-18 17:13:07 +0200 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-09-18 17:13:07 +0200 |
commit | 64cc13a8d35a6350494a81e012accabb61bb8d47 (patch) | |
tree | 29abf36dda9a24c83add7d2b29278cc549646f8a /core | |
parent | 715846626eb931f086fbc952b33031f706b4547a (diff) | |
download | nextcloud-server-64cc13a8d35a6350494a81e012accabb61bb8d47.tar.gz nextcloud-server-64cc13a8d35a6350494a81e012accabb61bb8d47.zip |
allow passing classes to buttons
Diffstat (limited to 'core')
-rw-r--r-- | core/js/jquery.ocdialog.js | 3 |
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; |