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
26e8eb8f
Commit
26e8eb8f
authored
May 07, 2019
by
Gradl, Tobias
Browse files
1291: Show errors on indexed resources
Task-Url:
https://pm.winseda.de/issues/1291
parent
f6e0349b
Changes
1
Hide whitespace changes
Inline
Side-by-side
js/item/item.js
View file @
26e8eb8f
...
...
@@ -41,6 +41,18 @@ ResultItem.prototype.resize = function() {
$
(
"
.collection-image span
"
).
css
(
"
font-size
"
,
Math
.
floor
(
$
(
"
.collection-image
"
).
width
()
*
0.07
));
};
ResultItem
.
prototype
.
showErrors
=
function
(
button
)
{
var
indicator
=
$
(
button
).
find
(
"
.fas
"
);
if
(
$
(
"
#item-detail-errors-container
"
).
hasClass
(
"
show
"
))
{
$
(
"
#item-detail-errors-container
"
).
removeClass
(
"
show
"
);
$
(
indicator
).
addClass
(
"
fa-chevron-circle-down
"
).
removeClass
(
"
fa-chevron-circle-up
"
);
}
else
{
$
(
"
#item-detail-errors-container
"
).
addClass
(
"
show
"
);
$
(
indicator
).
addClass
(
"
fa-chevron-circle-up
"
).
removeClass
(
"
fa-chevron-circle-down
"
);
}
};
ResultItem
.
prototype
.
loadOriginalData
=
function
(
button
)
{
this
.
loadData
(
"
original
"
,
"
#item-detail-dataset-container
"
,
"
#item-detail-dataset
"
,
button
);
};
...
...
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