bug fix : communication between theme and module
Signed-off-by: bachy <git@g-u-i.net>
This commit is contained in:
parent
b181133e60
commit
454adf9478
@ -378,20 +378,21 @@ MaterioSearchApiAjax = function(){
|
||||
});
|
||||
|
||||
$(document)
|
||||
.bind('theme-ready', onThemeReady)
|
||||
.bind('init-scroller-pager', onInitScrollerPager)
|
||||
.bind('load-scroller-pager', onLoadScrollerPager)
|
||||
.bind('view-mode-changed', onViewModeChanged)
|
||||
.bind('history-state-change', onHistoryStateChange);
|
||||
|
||||
// trigger updated event for direct html loading
|
||||
};
|
||||
|
||||
function onThemeReady(event){
|
||||
// trace('MaterioSearchApiAjax :: onThemeReady');
|
||||
if( isActuality() || isExplore() ){
|
||||
setTimeout(function(){
|
||||
//trace('MaterioSearchApiAjax :: initSearchAjax :: triggering resultschanged')
|
||||
$.event.trigger({
|
||||
type : 'resultschanged',
|
||||
container : isActuality() ? '#content .actuality-items' : '#content .search-results'
|
||||
});
|
||||
}, 10);
|
||||
$.event.trigger({
|
||||
type : 'resultschanged',
|
||||
container : isActuality() ? '#content .actuality-items' : '#content .search-results'
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -41,20 +41,21 @@ MaterioSearchApiAjax = function(){
|
||||
});
|
||||
|
||||
$(document)
|
||||
.bind('theme-ready', onThemeReady)
|
||||
.bind('init-scroller-pager', onInitScrollerPager)
|
||||
.bind('load-scroller-pager', onLoadScrollerPager)
|
||||
.bind('view-mode-changed', onViewModeChanged)
|
||||
.bind('history-state-change', onHistoryStateChange);
|
||||
|
||||
// trigger updated event for direct html loading
|
||||
};
|
||||
|
||||
function onThemeReady(event){
|
||||
// trace('MaterioSearchApiAjax :: onThemeReady');
|
||||
if( isActuality() || isExplore() ){
|
||||
setTimeout(function(){
|
||||
//trace('MaterioSearchApiAjax :: initSearchAjax :: triggering resultschanged')
|
||||
$.event.trigger({
|
||||
type : 'resultschanged',
|
||||
container : isActuality() ? '#content .actuality-items' : '#content .search-results'
|
||||
});
|
||||
}, 10);
|
||||
$.event.trigger({
|
||||
type : 'resultschanged',
|
||||
container : isActuality() ? '#content .actuality-items' : '#content .search-results'
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user