mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
allow passing classes to buttons
This commit is contained in:
parent
715846626e
commit
64cc13a8d3
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue