Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
MetaGer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
54
Issues
54
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
open-source
MetaGer
Commits
5d124106
Commit
5d124106
authored
Nov 28, 2017
by
Karl Hasselbring
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactoring: Optionsbox der Suchleiste
parent
ca4a7601
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
18 deletions
+16
-18
public/js/searchbar.js
public/js/searchbar.js
+2
-2
public/js/utility.js
public/js/utility.js
+1
-0
resources/assets/js/searchbar.js
resources/assets/js/searchbar.js
+2
-2
resources/assets/js/utility.js
resources/assets/js/utility.js
+1
-0
resources/assets/less/metager/searchbar.less
resources/assets/less/metager/searchbar.less
+6
-1
resources/views/parts/searchbar.blade.php
resources/views/parts/searchbar.blade.php
+4
-13
No files found.
public/js/searchbar.js
View file @
5d124106
...
...
@@ -390,14 +390,14 @@ function toggleOptionsDialog() {
function
openOptionsDialog
()
{
$
(
'
#toggleOptBtn
'
).
html
(
'
<i class="fa fa-chevron-up" aria-hidden="true"></i>
'
);
$
(
'
#toggleOptBtn
'
).
attr
(
'
data-mode
'
,
'
c
'
);
$
(
'
.search-option-frame
'
).
css
(
'
display
'
,
'
flex
'
);
$
(
'
.search-option-frame
'
).
removeClass
(
'
hide
'
);
}
function
closeOptionsDialog
()
{
$
(
'
#toggleOptBtn
'
).
html
(
'
<i class="fa fa-chevron-down" aria-hidden="true"></i>
'
);
$
(
'
#toggleOptBtn
'
).
attr
(
'
data-mode
'
,
'
o
'
);
$
(
'
.search-option-frame
'
).
css
(
'
display
'
,
'
non
e
'
);
$
(
'
.search-option-frame
'
).
addClass
(
'
hid
e
'
);
}
...
...
public/js/utility.js
View file @
5d124106
$
(
document
).
ready
(
function
()
{
$
(
'
.js-only
'
).
removeClass
(
'
js-only
'
);
$
(
'
.no-js
'
).
addClass
(
'
hide
'
);
});
//# sourceMappingURL=utility.js.map
resources/assets/js/searchbar.js
View file @
5d124106
...
...
@@ -390,14 +390,14 @@ function toggleOptionsDialog() {
function
openOptionsDialog
()
{
$
(
'
#toggleOptBtn
'
).
html
(
'
<i class="fa fa-chevron-up" aria-hidden="true"></i>
'
);
$
(
'
#toggleOptBtn
'
).
attr
(
'
data-mode
'
,
'
c
'
);
$
(
'
.search-option-frame
'
).
css
(
'
display
'
,
'
flex
'
);
$
(
'
.search-option-frame
'
).
removeClass
(
'
hide
'
);
}
function
closeOptionsDialog
()
{
$
(
'
#toggleOptBtn
'
).
html
(
'
<i class="fa fa-chevron-down" aria-hidden="true"></i>
'
);
$
(
'
#toggleOptBtn
'
).
attr
(
'
data-mode
'
,
'
o
'
);
$
(
'
.search-option-frame
'
).
css
(
'
display
'
,
'
non
e
'
);
$
(
'
.search-option-frame
'
).
addClass
(
'
hid
e
'
);
}
...
...
resources/assets/js/utility.js
View file @
5d124106
$
(
document
).
ready
(
function
()
{
$
(
'
.js-only
'
).
removeClass
(
'
js-only
'
);
$
(
'
.no-js
'
).
addClass
(
'
hide
'
);
});
resources/assets/less/metager/searchbar.less
View file @
5d124106
...
...
@@ -20,6 +20,11 @@
margin: 5px;
}
.search-settings:only-child {
padding: 5px;
border-right: solid 1px #ccc;
}
select {
width: 100%;
-webkit-appearance: none;
...
...
@@ -47,7 +52,7 @@
}
.search-option-frame {
display:
none
;
display:
flex
;
position: absolute;
background-color: white;
top: 50px;
...
...
resources/views/parts/searchbar.blade.php
View file @
5d124106
...
...
@@ -4,25 +4,16 @@
<
form
id
=
"searchForm"
method
=
{{
$request
}}
action
=
"{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "
/
meta
/
meta
.
ger3
") }}"
accept
-
charset
=
"UTF-8"
>
<
div
class
=
"searchbar {{$class or ''}}"
>
<
div
class
=
"search-focus-selector"
>
<
button
type
=
"button"
id
=
"toggleOptBtn"
data
-
mode
=
"o"
>
<
button
type
=
"button"
id
=
"toggleOptBtn"
class
=
"js-only"
data
-
mode
=
"o"
>
<
i
class
=
"fa fa-chevron-down"
></
i
>
</
button
>
<
noscript
>
<
style
>
#toggleOptBtn {
display
:
none
;
}
.
search
-
settings
{
padding
:
5
px
;
border
-
right
:
solid
1
px
#ccc;
}
</
style
>
<
div
class
=
"no-js"
>
<
div
class
=
"search-settings"
>
<
a
id
=
"settings-btn"
class
=
"mutelink btn btn-default"
href
=
"{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "
settings
") }}"
>
<
i
class
=
"fa fa-cog"
aria
-
hidden
=
"true"
></
i
>
</
a
>
</
div
>
</
noscript
>
</
div
>
<
select
id
=
"focus-select"
name
=
"focus"
style
=
"font-family: FontAwesome, sans-serif;"
>
<
option
value
=
"web"
style
=
"font-family: FontAwesome, sans-serif;"
selected
>&
#xf0ac; Websuche</option>
<
option
value
=
"nachrichten"
style
=
"font-family: FontAwesome, sans-serif;"
>&
#xf0a1; Nachrichtensuche</option>
...
...
@@ -30,7 +21,7 @@
<
option
value
=
"produktsuche"
style
=
"font-family: FontAwesome, sans-serif;"
>&
#xf07a; Produktsuche</option>
<
option
value
=
"maps"
style
=
"font-family: FontAwesome, sans-serif;"
>&
#xf279; Kartensuche</option>
</
select
>
<
div
class
=
"search-option-frame
"
style
=
"display:none;
"
>
<
div
class
=
"search-option-frame
hide
"
>
<
div
class
=
"searchbar-options-arrow"
>
</
div
>
<
div
class
=
"search-button-container"
>
...
...
Write
Preview
Markdown
is supported
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