Skip to content
Snippets Groups Projects
Commit cf273486 authored by Aria Givi's avatar Aria Givi
Browse files

Umstellung auf angegebene Request Methode wurde im JavaScript nicht ausgefuehrt

parent 51d7f048
No related branches found
No related tags found
Loading
...@@ -103,6 +103,11 @@ function setSettings () { ...@@ -103,6 +103,11 @@ function setSettings () {
if (autocomplete !== null) { if (autocomplete !== null) {
$('input[name=eingabe]').attr('autocomplete', autocomplete); $('input[name=eingabe]').attr('autocomplete', autocomplete);
} }
// Change the request method to the given parameter
var requestMethod = localStorage.getItem('request');
if (requestMethod !== null && (requestMethod === 'GET' || requestMethod === 'POST')) {
$('#searchForm').attr('method', requestMethod);
}
if ($('fieldset#foki.mobile').length) { if ($('fieldset#foki.mobile').length) {
$('fieldset.mobile input#bilder').val('angepasst'); $('fieldset.mobile input#bilder').val('angepasst');
$('fieldset.mobile input#bilder').prop('checked', true); $('fieldset.mobile input#bilder').prop('checked', true);
......
...@@ -263,7 +263,7 @@ ...@@ -263,7 +263,7 @@
</div> </div>
</div> </div>
<fieldset> <fieldset>
<form id="searchForm" @if(Request::has('request') && Request::input('request') === "POST") method="POST" @elseif(Request::has('request') && Request::input('request') === "GET") method="GET" @else method="GET" @endif action="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/meta/meta.ger3") }}" accept-charset="UTF-8"> <form id="searchForm" method="GET" action="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/meta/meta.ger3") }}" accept-charset="UTF-8">
<div class="input-group"> <div class="input-group">
<div class="input-group-addon"> <div class="input-group-addon">
<button type="button" data-toggle="popover" data-html="true" data-container="body" title="{{ trans('index.design') }}" data-content='&lt;ul id="color-chooser" class="list-inline list-unstyled"&gt; <button type="button" data-toggle="popover" data-html="true" data-container="body" title="{{ trans('index.design') }}" data-content='&lt;ul id="color-chooser" class="list-inline list-unstyled"&gt;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment