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
e29ade95
Commit
e29ade95
authored
Sep 27, 2021
by
Gradl, Tobias
Browse files
441: Fix issues related to deployment of upcoming v4-release (OPENED)
Task-Url:
search#441
parent
35e2b0ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
js/search/search.sourceSelection.js
View file @
e29ade95
...
...
@@ -42,13 +42,7 @@ 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
(
"
*
"
);
}
}
if
(
search
!==
undefined
&&
search
.
search
!==
undefined
)
{
search
.
search
();
}
};
...
...
@@ -212,4 +206,15 @@ SourceSelection.prototype.handleSelectionDialogAccepted = function() {
});
this
.
setSelectedSourceIds
(
allSelected
?
[]
:
selectedDatasources
);
};
\ No newline at end of file
};
SourceSelection
.
prototype
.
searchSelectedSourceIds
=
function
(
selectedSourceIds
)
{
if
(
$
(
"
#expression
"
).
length
>
0
)
{
let
queryString
=
$
(
"
#expression
"
).
val
();
if
(
queryString
==
null
||
queryString
==
""
)
{
$
(
"
#expression
"
).
val
(
"
*
"
);
}
}
this
.
setSelectedSourceIds
(
selectedSourceIds
);
};
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