mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 14:44:43 -04:00
Fix textcomplete up side down option not set properly
This commit is contained in:
parent
bbaf697687
commit
dd284a7bd0
2 changed files with 8 additions and 9 deletions
5
public/vendor/jquery-textcomplete/jquery.textcomplete.js
vendored
Normal file → Executable file
5
public/vendor/jquery-textcomplete/jquery.textcomplete.js
vendored
Normal file → Executable file
|
@ -167,6 +167,7 @@ if (typeof jQuery === 'undefined') {
|
|||
var element = this.$el.get(0);
|
||||
// Initialize view objects.
|
||||
this.dropdown = new $.fn.textcomplete.Dropdown(element, this, this.option);
|
||||
this.dropdown.upSideDown = false;
|
||||
var Adapter, viewName;
|
||||
if (this.option.adapter) {
|
||||
Adapter = this.option.adapter;
|
||||
|
@ -556,13 +557,13 @@ if (typeof jQuery === 'undefined') {
|
|||
if (!this.shown) { return; }
|
||||
if (this.isUp(e)) {
|
||||
e.preventDefault();
|
||||
if(typeof upSideDown != 'undefined' && upSideDown)
|
||||
if(this.upSideDown)
|
||||
this._down();
|
||||
else
|
||||
this._up();
|
||||
} else if (this.isDown(e)) {
|
||||
e.preventDefault();
|
||||
if(typeof upSideDown != 'undefined' && upSideDown)
|
||||
if(this.upSideDown)
|
||||
this._up();
|
||||
else
|
||||
this._down();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue