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