|
@@ -24,7 +24,7 @@ MaterioSearchApiAjax = function(){
|
|
|
|
|
|
$('#materio-search-api-search-form').bind('submit', function(event) {
|
|
$('#materio-search-api-search-form').bind('submit', function(event) {
|
|
// trace('search submited', event);
|
|
// trace('search submited', event);
|
|
- var $this = $(this);
|
|
|
|
|
|
+ // var $this = $(this);
|
|
setTimeout(function(){
|
|
setTimeout(function(){
|
|
loadResults(getSearchKeys());
|
|
loadResults(getSearchKeys());
|
|
},10);
|
|
},10);
|
|
@@ -122,7 +122,7 @@ MaterioSearchApiAjax = function(){
|
|
$.getJSON(url,
|
|
$.getJSON(url,
|
|
function(json){
|
|
function(json){
|
|
//trace('json', json);
|
|
//trace('json', json);
|
|
- $.event.trigger('resultsloaded');
|
|
|
|
|
|
+ $.event.trigger('loaded-content');
|
|
_isloadingresults = false;
|
|
_isloadingresults = false;
|
|
$('#materio-search-api-search-form').removeClass('loading');
|
|
$('#materio-search-api-search-form').removeClass('loading');
|
|
changeContent(json);
|
|
changeContent(json);
|