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
dbd7ca4b
Commit
dbd7ca4b
authored
Feb 14, 2018
by
Gradl, Tobias
Browse files
972: Fix some minor UI glitches
Task-Url:
https://pm.winseda.de/issues/972
parent
9d08de5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
js/customSearch/list.js
View file @
dbd7ca4b
...
...
@@ -61,8 +61,13 @@ CustomSearchEditor.prototype.showCustomSearches = function(data) {
}
});
var
firstCs
;
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
)
{
var
uc
=
data
[
i
].
entity
;
if
(
i
==
0
)
{
firstCs
=
uc
.
id
;
}
var
element
=
'
<li class="source-select-ucId" id="source-select-ucId-
'
+
uc
.
id
+
'
">
'
+
'
<a href="javascript:void(0)" onclick="editor.setActiveSearch(
\'
'
+
uc
.
id
+
'
\'
); editor.refresh(); return false;">
'
+
...
...
@@ -97,6 +102,10 @@ CustomSearchEditor.prototype.showCustomSearches = function(data) {
$
(
"
#source-select-ucIds
"
).
append
(
element
);
}
if
(
firstCs
!==
undefined
)
{
this
.
setActiveSearch
(
firstCs
);
}
};
CustomSearchEditor
.
prototype
.
setActiveSearch
=
function
(
ucId
)
{
...
...
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