Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
cf273486
Commit
cf273486
authored
Sep 07, 2017
by
Aria Givi
Browse files
Umstellung auf angegebene Request Methode wurde im JavaScript nicht ausgefuehrt
parent
51d7f048
Changes
2
Hide whitespace changes
Inline
Side-by-side
resources/assets/js/scriptStartPage.js
View file @
cf273486
...
...
@@ -103,6 +103,11 @@ function setSettings () {
if
(
autocomplete
!==
null
)
{
$
(
'
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
)
{
$
(
'
fieldset.mobile input#bilder
'
).
val
(
'
angepasst
'
);
$
(
'
fieldset.mobile input#bilder
'
).
prop
(
'
checked
'
,
true
);
...
...
resources/views/index.blade.php
View file @
cf273486
...
...
@@ -263,7 +263,7 @@
</
div
>
</
div
>
<
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-addon"
>
<
button
type
=
"button"
data
-
toggle
=
"popover"
data
-
html
=
"true"
data
-
container
=
"body"
title
=
"{{ trans('index.design') }}"
data
-
content
=
'<ul id="color-chooser" class="list-inline list-unstyled">
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment