Process query builder rules in custom search controller
This commit is contained in:
parent
a6fa88bd1f
commit
1590d58830
2 changed files with 56 additions and 1 deletions
|
@ -152,8 +152,15 @@ $('input[type=checkbox]').removeAttr('checked');
|
|||
fillOutForm(compilationName);
|
||||
});
|
||||
}
|
||||
|
||||
function fillOutForm(compilationName){
|
||||
var iframeDoc = document.getElementById('newCompilationIframe').contentWindow.document;
|
||||
var rules = $('#builder').queryBuilder('getRules');
|
||||
var query = format_query_string(rules,"");
|
||||
iframeDoc.getElementById('queryBuilderRules').value = JSON.stringify(rules);
|
||||
iframeDoc.getElementById('rawQueryString').value = query;
|
||||
|
||||
|
||||
iframeDoc.getElementById('newCompilationLabel').value = compilationName;
|
||||
var excerpts = $('.virtualArticlePart').toArray();
|
||||
for (i = 0;i < excerpts.length;i++){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue