port to spin.js

This commit is contained in:
git-marijus 2013-07-13 18:28:26 +02:00
parent 21e013ab05
commit 6f7e61d42a

View File

@ -242,7 +242,7 @@
} else if (!this.isBadQuery(q)) { } else if (!this.isBadQuery(q)) {
me = this; me = this;
me.options.params.query = q; me.options.params.query = q;
$('#nav-search-spinner').show(); $('#nav-search-spinner').spin('tiny');
$.get(this.serviceUrl, me.options.params, function(txt) { me.processResponse(txt); }, 'text'); $.get(this.serviceUrl, me.options.params, function(txt) { me.processResponse(txt); }, 'text');
} }
}, },
@ -305,7 +305,7 @@
this.data = response.data; this.data = response.data;
this.suggest(); this.suggest();
} }
$('#nav-search-spinner').hide(); $('#nav-search-spinner').spin(false);
}, },
activate: function(index) { activate: function(index) {