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
835c1d92
Commit
835c1d92
authored
Apr 07, 2017
by
Piotr Gawron
Browse files
label for search contain text
parent
6e99fdef
Changes
2
Hide whitespace changes
Inline
Side-by-side
frontend-js/src/main/js/gui/AbstractDbPanel.js
View file @
835c1d92
...
...
@@ -68,7 +68,7 @@ AbstractPanel.prototype._initializeGui = function(){
this
.
getElement
().
appendChild
(
searchQueryDiv
);
this
.
setControlElement
(
PanelControlElementType
.
SEARCH_DIV
,
searchQueryDiv
);
var
searchLabel
=
Functions
.
createElement
({
type
:
"
div
"
,
name
:
"
searchLabel
"
}
);
var
searchLabel
=
Functions
.
createElement
({
type
:
"
div
"
,
name
:
"
searchLabel
"
,
content
:
"
SEARCH:
"
}
);
searchQueryDiv
.
appendChild
(
searchLabel
);
this
.
setControlElement
(
PanelControlElementType
.
SEARCH_LABEL
,
searchLabel
);
...
...
frontend-js/src/test/js/gui/AbstractPanel-test.js
View file @
835c1d92
...
...
@@ -7,6 +7,7 @@ var Helper = require('../helper');
require
(
"
../mocha-config.js
"
);
var
AbstractDbPanel
=
require
(
'
../../../main/js/gui/AbstractDbPanel
'
);
var
PanelControlElementType
=
require
(
'
../../../main/js/gui/PanelControlElementType
'
);
var
chai
=
require
(
'
chai
'
);
var
assert
=
chai
.
assert
;
...
...
@@ -30,6 +31,8 @@ describe('AbstractDbPanel', function() {
customMap
:
map
,
panelName
:
"
search
"
,
});
assert
.
ok
(
panel
.
getControlElement
(
PanelControlElementType
.
SEARCH_LABEL
).
innerHTML
!=
""
);
});
});
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