history nav is now ok
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
var _$form;
|
||||
|
||||
function init(){
|
||||
console.log('EdlpSearch Init', settings);
|
||||
// console.log('EdlpSearch Init', settings);
|
||||
initEvents();
|
||||
initAjax();
|
||||
};
|
||||
@@ -20,8 +20,8 @@
|
||||
function initAjax(){
|
||||
_$form = $('#edlp-search-form:not(.ajax-enabled)');
|
||||
if(!_$form.length) return false;
|
||||
|
||||
console.log('EdlpSearch initAjaxForm()');
|
||||
|
||||
//console.log('EdlpSearch initAjaxForm()');
|
||||
_$form = $('#edlp-search-form:not(.ajax-enabled)')
|
||||
.on('submit', onSubmitForm)
|
||||
.addClass('ajax-enabled');
|
||||
@@ -51,7 +51,7 @@
|
||||
// genres
|
||||
args.genres = $('input[name="genres"]', this).val();
|
||||
|
||||
console.log('EdlpSearch onSubmitForm() : args',args);
|
||||
//console.log('EdlpSearch onSubmitForm() : args',args);
|
||||
|
||||
loadResults(args);
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
};
|
||||
|
||||
function loadResults(args){
|
||||
console.log('EdlpSearch loadResults() : args', args);
|
||||
//console.log('EdlpSearch loadResults() : args', args);
|
||||
_$form.addClass('ajax-loading');
|
||||
_$body.addClass('ajax-loading');
|
||||
$('[theme="edlp_search_results"]', _$container).addClass('ajax-loading');
|
||||
|
||||
@@ -273,12 +273,12 @@ class EdlpSearchController extends ControllerBase {
|
||||
$query->keys($this->keys);
|
||||
}
|
||||
|
||||
// TODO: langues
|
||||
// langues
|
||||
if (!empty($this->langues)) {
|
||||
$query->addCondition('field_langues', $this->langues, "=");
|
||||
}
|
||||
|
||||
// TODO: genres
|
||||
// genres
|
||||
if (!empty($this->genres)) {
|
||||
$query->addCondition('field_genres', $this->genres, "=");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user