diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2014-08-12 18:04:52 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-08-21 08:40:09 +0200 |
commit | a3a97cf1f56302c67375d733ec67bc176cbd9319 (patch) | |
tree | b83cffa9cdb5df00cb188b153d9689d5ce79fcc6 | |
parent | 4e4b299ceb54d83a78883223fd8686380012374c (diff) | |
download | nextcloud-server-a3a97cf1f56302c67375d733ec67bc176cbd9319.tar.gz nextcloud-server-a3a97cf1f56302c67375d733ec67bc176cbd9319.zip |
make singleselect check for gravity wish, and make it south for default quota
-rw-r--r-- | core/js/singleselect.js | 6 | ||||
-rw-r--r-- | settings/templates/users/part.setquota.php | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/core/js/singleselect.js b/core/js/singleselect.js index c22b5232207..6a4c104ffba 100644 --- a/core/js/singleselect.js +++ b/core/js/singleselect.js @@ -2,10 +2,14 @@ $.fn.singleSelect = function () { return this.each(function (i, select) { var input = $('<input/>'), + gravity = $(select).attr('data-gravity'), inputTooltip = $(select).attr('data-inputtitle'); if (inputTooltip){ input.attr('title', inputTooltip); } + if (typeof gravity === 'undefined') { + gravity = 'n' + } select = $(select); input.css('position', 'absolute'); input.css({ @@ -35,7 +39,7 @@ input.css(select.offset()); input.show(); if ($.fn.tipsy){ - input.tipsy({gravity: 'n', trigger: 'manual'}); + input.tipsy({gravity: gravity, trigger: 'manual'}); input.tipsy('show'); } select.css('background-color', 'white'); diff --git a/settings/templates/users/part.setquota.php b/settings/templates/users/part.setquota.php index ee9b918eace..55e31a930e9 100644 --- a/settings/templates/users/part.setquota.php +++ b/settings/templates/users/part.setquota.php @@ -6,7 +6,7 @@ <!-- Default storage --> <span><?php p($l->t('Default Quota'));?></span> <?php if((bool) $_['isAdmin']): ?> - <select id='default_quota' data-inputtitle="<?php p($l->t('Please enter storage quota (ex: "512 MB" or "12 GB")')) ?>"> + <select id='default_quota' data-inputtitle="<?php p($l->t('Please enter storage quota (ex: "512 MB" or "12 GB")')) ?>" data-gravity="s"> <option <?php if($_['default_quota'] === 'none') print_unescaped('selected="selected"');?> value='none'> <?php p($l->t('Unlimited'));?> </option> |