From 2e5b2704a2e940635424da62a9b8884411740980 Mon Sep 17 00:00:00 2001 From: Ali-D-Akbar Date: Tue, 16 Feb 2021 18:06:18 +0500 Subject: [PATCH] PROD-2191 --- lms/static/js/jquery.autocomplete.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lms/static/js/jquery.autocomplete.js b/lms/static/js/jquery.autocomplete.js index 8a43f12a36..6f161485f6 100644 --- a/lms/static/js/jquery.autocomplete.js +++ b/lms/static/js/jquery.autocomplete.js @@ -317,7 +317,7 @@ this.dom.$results = $('
').hide().addClass(this.options.resultsClass).css({ position: 'absolute' }); - $('body').append(this.dom.$results); + $('body').append(this.dom.$results); // xss-lint: disable=javascript-jquery-append /** * Attach keyboard monitoring to $elem @@ -494,7 +494,7 @@ } return false; }; - + /** * Set timeout to activate autocompleter */ @@ -765,7 +765,7 @@ */ $.Autocompleter.prototype.createItemFromResult = function(result) { var self = this; - var $li = $('
  • ' + this.showResult(result.value, result.data) + '
  • '); + var $li = $('
  • ' + this.showResult(result.value, result.data) + '
  • '); // xss-lint: disable=javascript-concat-html $li.data({value: result.value, data: result.data}) .click(function() { self.selectItem($li); @@ -814,7 +814,7 @@ // input element location may have changed. this.position(); - this.dom.$results.html($ul).show(); + this.dom.$results.html($ul).show(); // xss-lint: disable=javascript-jquery-html if (this.options.autoWidth) { autoWidth = this.dom.$elem.outerWidth() - this.dom.$results.outerWidth() + this.dom.$results.width(); this.dom.$results.css(this.options.autoWidth, autoWidth); @@ -940,7 +940,7 @@ this.setCaret(d.start + displayValue.length + extraCaretPos); this.callHook('onItemSelect', { value: value, data: data }); this.deactivate(true); - elem.focus(); + elem.focus(); }; $.Autocompleter.prototype.displayValue = function(value, data) { @@ -1033,7 +1033,7 @@ return { start: s, end: e - }; + }; }; /**