From dd284a7bd0f449b9f220ad46b5cca0f064a56ffc Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Wed, 7 Dec 2016 01:34:42 +0800 Subject: Fix textcomplete up side down option not set properly --- public/vendor/jquery-textcomplete/jquery.textcomplete.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) mode change 100644 => 100755 public/vendor/jquery-textcomplete/jquery.textcomplete.js (limited to 'public/vendor/jquery-textcomplete/jquery.textcomplete.js') diff --git a/public/vendor/jquery-textcomplete/jquery.textcomplete.js b/public/vendor/jquery-textcomplete/jquery.textcomplete.js old mode 100644 new mode 100755 index cd2f863d..8c25af16 --- a/public/vendor/jquery-textcomplete/jquery.textcomplete.js +++ b/public/vendor/jquery-textcomplete/jquery.textcomplete.js @@ -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(); -- cgit v1.2.3