Commit 97c1a0fe authored by Aria Givi's avatar Aria Givi
Browse files

Auswahl der SuMas wird nun gemerkt

parent 6fe8b2f1
...@@ -92,10 +92,10 @@ class MetaGer ...@@ -92,10 +92,10 @@ class MetaGer
{ {
# Hiermit werden die evtl. ausgewählten SuMas extrahiert, damit die Input-Boxen richtig gesetzt werden können # Hiermit werden die evtl. ausgewählten SuMas extrahiert, damit die Input-Boxen richtig gesetzt werden können
$focusPages = []; $focusPages = [];
foreach ($this->request->all() as $key => $value) { foreach ($this->request->all() as $key => $value) {
if ($value === 'on') { if ($value === 'on') {
$focusPages[] = str_replace('param_', '', $key); $focusPages[] = str_replace('param_', '', str_replace('engine_', '', $key));
} }
} }
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<div class="col-sm-6 col-md-4 col-lg-3"> <div class="col-sm-6 col-md-4 col-lg-3">
<div class="checkbox settings-checkbox"> <div class="checkbox settings-checkbox">
<label> <label>
<input type="checkbox" form="searchForm" name="engine_{{ strtolower($name) }}" class="focusCheckbox" @if(isset($focusPages) && in_array('engine_{{ strtolower($name) }}', $focusPages)) checked @endif> <input type="checkbox" form="searchForm" name="engine_{{ strtolower($name) }}" class="focusCheckbox" @if(isset($focusPages) && in_array(strtolower($name), $focusPages)) checked @endif>
{{ $data['displayName'] }} {{ $data['displayName'] }}
<a class="settings-icon" target="_blank" rel="noopener" href="{{ $data['url'] }}"> <a class="settings-icon" target="_blank" rel="noopener" href="{{ $data['url'] }}">
<i class="fa fa-link" aria-hidden="true"></i> <i class="fa fa-link" aria-hidden="true"></i>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment