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:
parent
47646794b9
commit
9528045178
|
@ -628,6 +628,7 @@ label.infield {
|
|||
.avatardiv,
|
||||
.avatardiv img {
|
||||
border-radius: 50%;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
td.avatar {
|
||||
border-radius: 0;
|
||||
|
|
|
@ -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());
|
||||
}
|
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue