diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2014-08-12 18:04:52 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2014-08-12 18:04:52 +0200 |
commit | 288b6d40713de3707b489a1028935fabae62e021 (patch) | |
tree | c967c766e6fe8773be5c972c124d638cdd488472 /core/js | |
parent | 997653fd09c27eeeaa93f59a18d1631ee464b81c (diff) | |
download | nextcloud-server-288b6d40713de3707b489a1028935fabae62e021.tar.gz nextcloud-server-288b6d40713de3707b489a1028935fabae62e021.zip |
make singleselect check for gravity wish, and make it south for default quota
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/singleselect.js | 6 |
1 files changed, 5 insertions, 1 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'); |