mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Fix page selection
This commit is contained in:
@@ -320,7 +320,6 @@ function resize(){
|
||||
|
||||
function clearAnswers(){
|
||||
$('#formAnswerPage').val('');
|
||||
$('#searchForm input[name="sel"]').val('');
|
||||
$('#searchForm input[name="nba"]').val('');
|
||||
$('#answers, #dyn_tool').empty();
|
||||
}
|
||||
@@ -346,6 +345,7 @@ function newSearch()
|
||||
{
|
||||
console.log('Fresh new search, cache empty');
|
||||
}
|
||||
p4.Results.Selection.empty()
|
||||
|
||||
clearAnswers();
|
||||
var val = $('#searchForm input[name="qry"]').val();
|
||||
@@ -475,11 +475,14 @@ function initAnswerForm(){
|
||||
success: function(datas){
|
||||
|
||||
|
||||
|
||||
$('#answers').empty().append(datas.results).removeClass('loading');
|
||||
$('#tool_results').empty().append(datas.infos);
|
||||
$('#tool_navigate').empty().append(datas.navigation);
|
||||
|
||||
$.each(p4.Results.Selection.get(), function(i, el){
|
||||
$('#IMGT_' + el).addClass('selected');
|
||||
});
|
||||
|
||||
$('#proposals').empty().append(datas.phrasea_props);
|
||||
|
||||
if($.trim(datas.phrasea_props) !== '')
|
||||
|
Reference in New Issue
Block a user