Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
minerva
core
Commits
8cb98b40
Commit
8cb98b40
authored
8 years ago
by
Piotr Gawron
Browse files
Options
Downloads
Patches
Plain Diff
search field style fixed
parent
af1791e5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!5
Frontend refactor
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
frontend-js/src/main/js/Functions.js
+3
-0
3 additions, 0 deletions
frontend-js/src/main/js/Functions.js
frontend-js/src/main/js/gui/AbstractDbPanel.js
+10
-2
10 additions, 2 deletions
frontend-js/src/main/js/gui/AbstractDbPanel.js
with
13 additions
and
2 deletions
frontend-js/src/main/js/Functions.js
+
3
−
0
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
;
};
...
...
This diff is collapsed.
Click to expand it.
frontend-js/src/main/js/gui/AbstractDbPanel.js
+
10
−
2
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
"
});
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment