Commits

Mark Lavin committed efede3a Merge

Merge back stable updates.

  • Participants
  • Parent commits b561bde, d3ad46f

Comments (0)

Files changed (6)

 26ccd03bdadc78c1861f63baff3bd9f401f58e5b version-0.5.2
 dd1cea7ff57aaf8610b6dbcb2caf64619bd687ab version-0.6.0
 7a0836ffd427952ba31958dd097c49667d0e8880 version-0.6.1
+5fb7551c6cdd56defb67cf15bc2bed674c37ddcf version-0.6.2
 
 The following people who have contributed to django-selectable:
 
+@dc
 Colin Copeland
 Sławomir Ehlert
 Dan Poirier
 # The short X.Y version.
 version = '0.6'
 # The full version, including alpha/beta/rc tags.
-release = '0.6.1'
+release = '0.6.2'
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.

docs/releases.rst

 ==================
 
 
+v0.6.2 (Released 2012-11-07)
+--------------------------------------
+
+Bug Fixes
+_________________
+
+- Fixed bug with special characters when highlighting matches. Thanks to Chad Files for the report.
+- Fixed javascript bug with spaces in ``item.id``. Thanks to @dc for the report and fix.
+
+
 v0.6.1 (Released 2012-10-13)
 --------------------------------------
 

selectable/__init__.py

 "Auto-complete selection widgets using Django and jQuery UI."
 
 
-__version__ = '0.6.1'
+__version__ = '0.6.2'

selectable/static/selectable/js/jquery.dj.selectable.js

                 if (self.options.formatLabel) {
                     label = self.options.formatLabel(label, item);
                 }
-                if (self.options.highlightMatch) {
+                if (self.options.highlightMatch && this.term) {
                     var re = new RegExp("(?![^&;]+;)(?!<[^<>]*)(" +
                     $.ui.autocomplete.escapeRegex(this.term) +
                     ")(?![^<>]*>)(?![^&;]+;)", "gi");