aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorChimo <chimo@chromic.org>2015-02-15 16:11:23 -0500
committerChimo <chimo@chromic.org>2015-02-15 16:11:23 -0500
commit3f8a519980ac6db69465ad64e9c36000619f18cf (patch)
tree19b5b330d531a45825e91af7555bc3afb939ad34 /js
parent2b93643277d4198f6b4eedc918790549a914adac (diff)
downloadgnu-social-3f8a519980ac6db69465ad64e9c36000619f18cf.tar
gnu-social-3f8a519980ac6db69465ad64e9c36000619f18cf.zip
JS: Fixes jQueryUI autocomplete 'undefined' errors
data("autocomplete") was renamed to data("ui-autocomplete") starting from v1.9: http://jqueryui.com/upgrade-guide/1.9/#changed-naming-convention-for-data-keys
Diffstat (limited to 'js')
-rw-r--r--js/util.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/util.js b/js/util.js
index 9c727e9a53..6a1eb82b2e 100644
--- a/js/util.js
+++ b/js/util.js
@@ -1580,7 +1580,7 @@ var SN = { // StatusNet
// don't navigate away from the field on tab when selecting an item
txtBox.on( "keydown", function ( event ) {
if ( event.keyCode === $.ui.keyCode.TAB &&
- $(this).data( "autocomplete" ).menu.active ) {
+ $(this).data( "ui-autocomplete" ).menu.active ) {
event.preventDefault();
}
}).autocomplete({
@@ -1601,7 +1601,7 @@ var SN = { // StatusNet
this.value = terms.join(" ");
return false;
}
- }).data('autocomplete')._renderItem = function (ul, item) {
+ }).data('ui-autocomplete')._renderItem = function (ul, item) {
// FIXME: with jQuery UI you cannot have it highlight the match
var _l = '<a class="ptag-ac-line-tag">' + item.tag
+ ' <em class="privacy_mode">' + item.mode + '</em>'