diff --git a/frontend/drupal9/web/themes/custom/pro1ka/js/script.js b/frontend/drupal9/web/themes/custom/pro1ka/js/script.js index 32acd7b6d..7d7e3b5b4 100755 --- a/frontend/drupal9/web/themes/custom/pro1ka/js/script.js +++ b/frontend/drupal9/web/themes/custom/pro1ka/js/script.js @@ -27,11 +27,21 @@ }); // ISKANJE - jQuery('#forma-iskanje').keyup(function(event){ + jQuery('#forma-iskanje-header').keyup(function(event){ if (event.keyCode == 13) { var iskaniNiz = jQuery('#iskanje-input').val(); - var action = jQuery('#forma-iskanje').attr('data-action'); + var action = jQuery('#forma-iskanje-header').attr('data-action'); + + window.location.href = action + '/search/vsebina?keys=' +iskaniNiz; + } + }); + + jQuery('#forma-iskanje-second').keyup(function(event){ + if (event.keyCode == 13) { + var iskaniNiz = jQuery('#iskanje-input-second').val(); + + var action = jQuery('#forma-iskanje-second').attr('data-action'); window.location.href = action + '/search/vsebina?keys=' +iskaniNiz; } diff --git a/frontend/drupal9/web/themes/custom/pro1ka/templates/page.html.twig b/frontend/drupal9/web/themes/custom/pro1ka/templates/page.html.twig index 33f767cf4..a8ee964d0 100755 --- a/frontend/drupal9/web/themes/custom/pro1ka/templates/page.html.twig +++ b/frontend/drupal9/web/themes/custom/pro1ka/templates/page.html.twig @@ -29,14 +29,14 @@ {# Desni meni #} {#{% if page.sidebar_menu %} #} {# Na produkcije je potrebno vpisat mechanic name od bloka za meni #} - {% if page.sidebar_menu.mainnavigation_3|render is not same as('') %} -
+ {#% if page.sidebar_menu.mainnavigation_3|render is not same as('') %#} +
{# Polje za iskanje #} -
-
- +
+
+ - +
Thank you! Your submission has been received!
@@ -48,7 +48,7 @@ {{ page.sidebar_menu }}
- {% endif %} + {#% endif %#} {# END desni meni #}
diff --git a/frontend/drupal9/web/themes/custom/pro1ka/templates/parts/header.html.twig b/frontend/drupal9/web/themes/custom/pro1ka/templates/parts/header.html.twig index 69c612a09..8382ff7a3 100644 --- a/frontend/drupal9/web/themes/custom/pro1ka/templates/parts/header.html.twig +++ b/frontend/drupal9/web/themes/custom/pro1ka/templates/parts/header.html.twig @@ -9,11 +9,11 @@
-
+
- +