Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
8cb98b40
Commit
8cb98b40
authored
Apr 07, 2017
by
Piotr Gawron
Browse files
search field style fixed
parent
af1791e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
frontend-js/src/main/js/Functions.js
View file @
8cb98b40
...
...
@@ -242,6 +242,9 @@ Functions.createElement = function(params) {
if
(
params
.
content
!==
null
&&
params
.
content
!==
undefined
)
{
result
.
innerHTML
=
params
.
content
;
}
if
(
params
.
style
!==
null
&&
params
.
style
!==
undefined
)
{
result
.
style
.
cssText
=
params
.
style
;
}
return
result
;
};
...
...
frontend-js/src/main/js/gui/AbstractDbPanel.js
View file @
8cb98b40
...
...
@@ -72,12 +72,20 @@ AbstractPanel.prototype._initializeGui = function(){
searchQueryDiv
.
appendChild
(
searchLabel
);
this
.
setControlElement
(
PanelControlElementType
.
SEARCH_LABEL
,
searchLabel
);
var
searchInputDiv
=
Functions
.
createElement
({
type
:
"
div
"
,
style
:
"
display:table
"
});
searchQueryDiv
.
appendChild
(
searchInputDiv
);
var
searchInputCell
=
Functions
.
createElement
({
type
:
"
div
"
,
style
:
"
display:table-cell
"
});
searchInputDiv
.
appendChild
(
searchInputCell
);
var
searchInput
=
Functions
.
createElement
({
type
:
"
input
"
,
name
:
"
searchInput
"
,
className
:
"
input-field typeahead
"
});
search
QueryDiv
.
appendChild
(
searchInput
);
search
InputCell
.
appendChild
(
searchInput
);
this
.
setControlElement
(
PanelControlElementType
.
SEARCH_INPUT
,
searchInput
);
var
searchButtonCell
=
Functions
.
createElement
({
type
:
"
div
"
,
style
:
"
display:table-cell
"
});
searchInputDiv
.
appendChild
(
searchButtonCell
);
var
searchButton
=
Functions
.
createElement
({
type
:
"
a
"
,
className
:
"
searchButton
"
,
content
:
'
<img src="resources/images/icons/search.png"/>
'
});
search
QueryDiv
.
appendChild
(
searchButton
);
search
ButtonCell
.
appendChild
(
searchButton
);
this
.
setControlElement
(
PanelControlElementType
.
SEARCH_BUTTON
,
searchButton
);
var
searchResultsDiv
=
Functions
.
createElement
({
type
:
"
div
"
,
name
:
"
searchResults
"
,
className
:
"
tabbable boxed parentTabs
"
});
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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