summaryrefslogtreecommitdiff
path: root/public/vendor
diff options
context:
space:
mode:
authorWu Cheng-Han2016-12-07 01:34:42 +0800
committerWu Cheng-Han2016-12-07 01:34:42 +0800
commitdd284a7bd0f449b9f220ad46b5cca0f064a56ffc (patch)
treed966be63886c5f5c5b1f5044f80e3b360b7ee901 /public/vendor
parentbbaf697687d9d06b2386502df069f806b0097338 (diff)
Fix textcomplete up side down option not set properly
Diffstat (limited to 'public/vendor')
-rwxr-xr-x[-rw-r--r--]public/vendor/jquery-textcomplete/jquery.textcomplete.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/public/vendor/jquery-textcomplete/jquery.textcomplete.js b/public/vendor/jquery-textcomplete/jquery.textcomplete.js
index cd2f863d..8c25af16 100644..100755
--- 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();