Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dariah
search-commons-webresources
Commits
a86cb5d2
Commit
a86cb5d2
authored
Sep 24, 2021
by
Gradl, Tobias
Browse files
Item view improved
parent
115edf81
Changes
1
Hide whitespace changes
Inline
Side-by-side
js/search/search.sourceSelection.js
View file @
a86cb5d2
var
SourceSelection
=
function
(
options
)
{
this
.
options
=
$
.
extend
({
listSize
:
5
,
listSize
:
10
,
collectionColors
:
[
"
#1f77b4
"
,
"
#ff7f0e
"
,
"
#2ca02c
"
,
"
#d62728
"
,
"
#9467bd
"
,
"
#8c564b
"
,
"
#e377c2
"
,
"
#7f7f7f
"
,
"
#bcbd22
"
,
"
#17becf
"
]
...
...
@@ -43,6 +43,12 @@ SourceSelection.prototype.handleSelection = function() {
}
this
.
renderDatasourceList
();
if
(
search
!==
undefined
&&
search
.
search
!==
undefined
)
{
if
(
$
(
"
#expression
"
).
length
>
0
)
{
let
queryString
=
$
(
"
#expression
"
).
val
();
if
(
queryString
==
null
||
queryString
==
""
)
{
$
(
"
#expression
"
).
val
(
"
*
"
);
}
}
search
.
search
();
}
};
...
...
@@ -206,5 +212,4 @@ SourceSelection.prototype.handleSelectionDialogAccepted = function() {
});
this
.
setSelectedSourceIds
(
allSelected
?
[]
:
selectedDatasources
);
};
};
\ No newline at end of file
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