Merge pull request #68 from phalkunz/master

Editing the URL keeps reverting back bug (#6842)
This commit is contained in:
Sam Minnée 2012-03-08 19:25:59 -08:00
commit b0cb97a298

View File

@ -32,10 +32,10 @@
this.bind('change', function(e) {
if(!self.val()) return;
self.attr('disabled', 'disabled').parents('.field:first').addClass('loading');
self.addClass('disabled').parents('.field:first').addClass('loading');
var oldVal = self.val();
self.suggest(oldVal, function(data) {
self.removeAttr('disabled').parents('.field:first').removeClass('loading');
self.removeClass('disabled').parents('.field:first').removeClass('loading');
var newVal = decodeURIComponent(data.value);
self.val(newVal);