Commits

Mark Lavin committed 19904c5

Add timestamp to prevent browser caching queries.

Comments (0)

Files changed (1)

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

                 });
             }
 
+            function dataSource(request, response) {
+                var now = new Date().getTime();
+				$.getJSON(url, {
+					term: request.term,
+                    timestamp: now
+				}, response);
+            }
+
             $(input).autocomplete({
-                source: url,
+                source: dataSource,
                 change: function(event, ui) {
                     if (!ui.item) {
                         if (!allowNew) {