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
8ff548a0
Commit
8ff548a0
authored
May 22, 2019
by
Gradl, Tobias
Browse files
1278: Improve image handling esp. when not available
Task-Url:
https://pm.winseda.de/issues/1278
parent
27d742bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
js/collections/edit.js
View file @
8ff548a0
...
...
@@ -140,9 +140,10 @@ CollectionEditor.prototype.clearData = function (endpointId, schemaId, hasAdditi
}
}
var
dialog
=
bootbox
.
dialog
({
bootbox
.
dialog
({
title
:
__translator
.
translate
(
"
~eu.dariah.de.minfba.search.view.crawl.dialog.clear_data.head
"
),
message
:
__translator
.
translate
(
"
~eu.dariah.de.minfba.search.view.crawl.dialog.clear_data.body
"
),
size
:
'
large
'
,
buttons
:
buttons
});
};
...
...
js/item/item.js
View file @
8ff548a0
...
...
@@ -44,6 +44,18 @@ ResultItem.prototype.resize = function() {
$
(
"
.collection-image span
"
).
css
(
"
font-size
"
,
Math
.
floor
(
$
(
"
.collection-image
"
).
width
()
*
0.07
));
};
ResultItem
.
prototype
.
toggleCollapsed
=
function
(
button
)
{
var
indicator
=
$
(
button
).
find
(
"
.fas
"
);
if
(
$
(
button
).
next
(
"
.collapse
"
).
hasClass
(
"
show
"
))
{
$
(
button
).
next
(
"
.collapse
"
).
removeClass
(
"
show
"
);
$
(
indicator
).
addClass
(
"
fa-chevron-circle-down
"
).
removeClass
(
"
fa-chevron-circle-up
"
);
}
else
{
$
(
button
).
next
(
"
.collapse
"
).
addClass
(
"
show
"
);
$
(
indicator
).
addClass
(
"
fa-chevron-circle-up
"
).
removeClass
(
"
fa-chevron-circle-down
"
);
}
};
ResultItem
.
prototype
.
showErrors
=
function
(
button
)
{
var
indicator
=
$
(
button
).
find
(
"
.fas
"
);
...
...
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