search entries foldable

This commit is contained in:
2018-04-26 00:15:31 +02:00
parent 03a6d00061
commit 13e1af6f8e
4 changed files with 64 additions and 2 deletions
@@ -317,6 +317,10 @@
initEnregistrementTranscript();
}
if(state.sys_path == "search"){
initSearch();
}
// update the language switcher block if it comes in the response
if(typeof data.translations_links != 'undefined'){
console.log('state',state);
@@ -1507,6 +1511,21 @@
}
}
// ___ _
// / __| ___ __ _ _ _ __| |_
// \__ \/ -_) _` | '_/ _| ' \
// |___/\___\__,_|_| \__|_||_|
function initSearch(){
// if($('#edit-entries input:checked', '#edlp-search-form').length){
// $('#edit-entries--wrapper', '#edlp-search-form').toggleClass('opened');
// }
$('#edit-entries--wrapper legend', '#edlp-search-form').on('click', function(){
$(this).parent().toggleClass('opened');
});
};
// ___ _ _ _
// | __|_ _ _ _ ___ __ _(_)__| |_ _ _ ___ _ __ ___ _ _| |_
// | _|| ' \| '_/ -_) _` | (_-< _| '_/ -_) ' \/ -_) ' \ _|