diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-07-03 14:38:40 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-07-07 15:56:42 +0200 |
commit | 71fe5d672e516ee7c6ed9833a828b99acf9e6d13 (patch) | |
tree | da36940a5ac5cb151569e71acad7c2fe5fcce76d /core/js/jquery.ocdialog.js | |
parent | 268af9039ae4671be50863f852def8a0db0c7e08 (diff) | |
download | nextcloud-server-71fe5d672e516ee7c6ed9833a828b99acf9e6d13.tar.gz nextcloud-server-71fe5d672e516ee7c6ed9833a828b99acf9e6d13.zip |
Fixed dialogs styling, reversed buttons
Default dialog button is now on the right, other one on the left.
Diffstat (limited to 'core/js/jquery.ocdialog.js')
-rw-r--r-- | core/js/jquery.ocdialog.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/js/jquery.ocdialog.js b/core/js/jquery.ocdialog.js index af32591ce52..e48e3e8df6a 100644 --- a/core/js/jquery.ocdialog.js +++ b/core/js/jquery.ocdialog.js @@ -111,6 +111,13 @@ var $buttonrow = $('<div class="oc-dialog-buttonrow" />'); this.$buttonrow = $buttonrow.appendTo(this.$dialog); } + if (value.length === 1) { + this.$buttonrow.addClass('onebutton'); + } else if (value.length === 2) { + this.$buttonrow.addClass('twobuttons'); + } else if (value.length === 3) { + this.$buttonrow.addClass('threebuttons'); + } $.each(value, function(idx, val) { var $button = $('<button>').text(val.text); if (val.classes) { |