diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-01-29 10:15:46 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-01-29 11:07:48 +0100 |
commit | 3ced9cd83db38731a1e82dafc0dcbdfe7db6cc2b (patch) | |
tree | 3da933724684a709f6afa2a8cbaa1fae10baa575 /core/src/jquery/ui-fixes.js | |
parent | 2682d672d8076302da61fef3cc15e4d647d50be5 (diff) | |
download | nextcloud-server-3ced9cd83db38731a1e82dafc0dcbdfe7db6cc2b.tar.gz nextcloud-server-3ced9cd83db38731a1e82dafc0dcbdfe7db6cc2b.zip |
Move jQuery plugins into modules and add them to the bundle
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/src/jquery/ui-fixes.js')
-rw-r--r-- | core/src/jquery/ui-fixes.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/src/jquery/ui-fixes.js b/core/src/jquery/ui-fixes.js new file mode 100644 index 00000000000..d3cebfc346e --- /dev/null +++ b/core/src/jquery/ui-fixes.js @@ -0,0 +1,8 @@ +import $ from 'jquery' + +// Set autocomplete width the same as the related input +// See http://stackoverflow.com/a/11845718 +$.ui.autocomplete.prototype._resizeMenu = function () { + var ul = this.menu.element; + ul.outerWidth(this.element.outerWidth()); +}; |