aboutsummaryrefslogtreecommitdiffstats
path: root/library/jquery_ac
diff options
context:
space:
mode:
authormarijus <mario@localhost.localdomain>2013-11-14 18:03:16 +0100
committermarijus <mario@localhost.localdomain>2013-11-14 18:03:16 +0100
commit3311fe481352e30206c5d9c593f158814be9ca0b (patch)
treeb19cb9b3cd42bd0bfb521e95e2c4cb96f7519acb /library/jquery_ac
parentee629534d5245443152797bae81768680b5dda85 (diff)
downloadvolse-hubzilla-3311fe481352e30206c5d9c593f158814be9ca0b.tar.gz
volse-hubzilla-3311fe481352e30206c5d9c593f158814be9ca0b.tar.bz2
volse-hubzilla-3311fe481352e30206c5d9c593f158814be9ca0b.zip
make autocomplete better themable by adding an id
Diffstat (limited to 'library/jquery_ac')
-rw-r--r--library/jquery_ac/friendica.complete.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/library/jquery_ac/friendica.complete.js b/library/jquery_ac/friendica.complete.js
index b73598575..190625e87 100644
--- a/library/jquery_ac/friendica.complete.js
+++ b/library/jquery_ac/friendica.complete.js
@@ -35,6 +35,7 @@
this.ignoreValueChange = false;
this.serviceUrl = options.serviceUrl;
this.isLocal = false;
+ this.id = options.id;
this.options = {
autoSubmit: false,
minChars: 1,
@@ -77,7 +78,7 @@
if (!this.options.width) { this.options.width = this.el.width(); }
this.mainContainerId = 'AutocompleteContainter_' + uid;
- $('<div id="' + this.mainContainerId + '" style="position:absolute;z-index:9999;"><div class="autocomplete-w1"><div class="autocomplete" id="' + autocompleteElId + '" style="display:none; width:300px;"></div></div></div>').appendTo('body');
+ $('<div id="' + this.mainContainerId + '" style="position:absolute;z-index:9999;"><div class="autocomplete-w1" id="'+this.id+'"><div class="autocomplete" id="' + autocompleteElId + '" style="display:none; width:300px;"></div></div></div>').appendTo('body');
this.container = $('#' + autocompleteElId);
this.fixPosition();