Browse Source

Bugfix, xhr_user_search_url is not a global. Fixes #192

JC Brand 11 years ago
parent
commit
fe3e9f5294
2 changed files with 3 additions and 2 deletions
  1. 1 1
      converse.js
  2. 2 1
      docs/CHANGES.rst

+ 1 - 1
converse.js

@@ -1537,7 +1537,7 @@
 
             searchContacts: function (ev) {
                 ev.preventDefault();
-                $.getJSON(xhr_user_search_url+ "?q=" + $(ev.target).find('input.username').val(), function (data) {
+                $.getJSON(converse.xhr_user_search_url+ "?q=" + $(ev.target).find('input.username').val(), function (data) {
                     var $ul= $('.search-xmpp ul');
                     $ul.find('li.found-user').remove();
                     $ul.find('li.chat-info').remove();

+ 2 - 1
docs/CHANGES.rst

@@ -18,12 +18,13 @@ Changelog
 * Upgraded many dependencies to their latest versions. [jcbrand]
 * Add new configuration setting `forward_messages <https://conversejs.org/docs/html/index.html#forward_messages>`_
   Message forwarding was before a default behavior but is now optional (and disabled by default). [jcbrand]
-* Newly opened chat boxes always appear immediately left of the controlbox.
+* Newly opened chat boxes always appear immediately left of the controlbox. [jcbrand]
 * #71 Chat boxes and rooms can be minimized. [jcbrand]
 * #130 Fixed bootstrap conflicts. [jcbrand]
 * #132 Support for `XEP-0280: Message Carbons <https://xmpp.org/extensions/xep-0280.html'>`_.
   Configured via `enable_message_carbons <https://conversejs.org/docs/html/index.html#enable_message_carbons>`_ [hejazee]
 * #176 Add support for caching in sessionStorage as opposed to localStorage. [jcbrand]
+* #192 Error: xhr_user_search_url is not defined. [jcbrand]
 
 0.7.4 (2014-03-05)
 ------------------