Search se odpre vedno v novem oknu

This commit is contained in:
pero1203 2021-01-19 10:39:57 +01:00
parent 6313e93c8b
commit 06427b9460
2 changed files with 2 additions and 11 deletions

View File

@ -292,7 +292,6 @@ class SurveyAdmin
echo '<form method="GET" id="1kasf" action="'.$drupal_search_url.'">';
echo '<input type="hidden" id="drupal_search_url" name="drupal_search_url" value="'.$drupal_search_url.'" />';
echo '<input type="hidden" id="drupal_search_aai" name="drupal_search_aai" value="'.($aai_instalacija ? '1' : '1').'" />';
echo '<a href="#" onclick="showSearch();"><span class="faicon search pointer"></span></a> ';
echo '<input id="searchSurvey" type="text" value="" placeholder="' . $lang['s_search_frontend'] . '" name="search" />';

View File

@ -3919,18 +3919,10 @@ function showSearchb() {
function executeDrupalSearch() {
//var url = 'https://www.1ka.si/d/sl/search/node/';
var url = $('#drupal_search_url').val();
var from_aai = $('#drupal_search_aai').val();
var searchString = $('#searchSurvey').val();
if(from_aai == '1'){
window.open(url + encodeURIComponent(searchString), '_blank');
}
else{
window.location = url + encodeURIComponent(searchString);
}
window.open(url + encodeURIComponent(searchString), '_blank');
}
function showAdvancedSearch(){