Add jquery ui fixes js file

+ fix autocomplete width (fix #2324)

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2016-11-25 16:42:53 +01:00
parent 47646794b9
commit 9528045178
No known key found for this signature in database
GPG Key ID: FB5ACEED51955BF8
3 changed files with 10 additions and 0 deletions

View File

@ -628,6 +628,7 @@ label.infield {
.avatardiv,
.avatardiv img {
border-radius: 50%;
flex-shrink: 0;
}
td.avatar {
border-radius: 0;

8
core/js/jquery-ui-fixes.js vendored Normal file
View File

@ -0,0 +1,8 @@
// Various jquery fixes
// Set autocomplete width the same as the related input
// See http://stackoverflow.com/a/11845718
jQuery.ui.autocomplete.prototype._resizeMenu = function () {
var ul = this.menu.element;
ul.outerWidth(this.element.outerWidth());
}

View File

@ -147,6 +147,7 @@ class OC_Template extends \OC\Template\Base {
OC_Util::addScript("js", null, true);
OC_Util::addScript("oc-dialogs", null, true);
OC_Util::addScript("jquery.ocdialog", null, true);
OC_Util::addScript("jquery-ui-fixes");
OC_Util::addStyle("jquery.ocdialog");
OC_Util::addScript('files/fileinfo');
OC_Util::addScript('files/client');