Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dariah
search-commons-webresources
Commits
c3272326
Commit
c3272326
authored
May 12, 2021
by
Gradl, Tobias
Browse files
425: Fix minor search handling issues (OPENED)
Task-Url:
search#425
parent
8a7305ed
Changes
2
Hide whitespace changes
Inline
Side-by-side
js/search/search.js
View file @
c3272326
...
...
@@ -29,9 +29,9 @@ Search.prototype.init = function() {
Search
.
prototype
.
bindEvents
=
function
()
{
$
(
"
#btn-exec-search
"
).
click
(
function
()
{
search
.
queryHandler
.
doS
earch
();
});
$
(
"
#explain
"
).
change
(
function
()
{
search
.
queryHandler
.
doS
earch
();
});
$
(
'
#expression
'
).
keyup
(
function
(
e
)
{
if
(
e
.
which
==
13
)
{
search
.
queryHandler
.
doS
earch
();
}});
$
(
"
#btn-exec-search
"
).
click
(
function
()
{
search
.
s
earch
(
true
);
});
$
(
"
#explain
"
).
change
(
function
()
{
search
.
s
earch
();
});
$
(
'
#expression
'
).
keyup
(
function
(
e
)
{
if
(
e
.
which
==
13
)
{
search
.
s
earch
(
true
);
}});
$
(
"
#size
"
).
bind
(
"
slider:changed
"
,
function
(
event
,
data
)
{
$
(
"
#size_shown
"
).
text
(
data
.
value
);
...
...
@@ -76,8 +76,12 @@ Search.prototype.getSelectedSourceIds = function() {
return
this
.
sourceSelection
.
getSelectedSourceIds
();
};
Search
.
prototype
.
search
=
function
()
{
//this.queryHandler.doSearch();
Search
.
prototype
.
search
=
function
(
immediately
)
{
if
(
immediately
===
true
)
{
this
.
queryHandler
.
doSearch
();
}
else
{
this
.
queryHandler
.
doSearchDelayed
();
}
};
Search
.
prototype
.
metasearch
=
function
(
sourceIds
,
isShowMore
)
{
...
...
js/search/search.sourceSelection.js
View file @
c3272326
...
...
@@ -42,6 +42,7 @@ SourceSelection.prototype.handleSelection = function() {
});
}
this
.
renderDatasourceList
();
console
.
log
(
search
);
if
(
search
!==
undefined
&&
search
.
search
!==
undefined
)
{
search
.
search
();
}
...
...
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