mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-25 20:44:53 -04:00
Small fixes and semantics.
This commit is contained in:
parent
3a92606e0c
commit
84be82d175
18 changed files with 81 additions and 83 deletions
|
@ -39,24 +39,24 @@ modulejs.define('ext/thumbnails', ['_', 'core/settings', 'core/event', 'core/ser
|
|||
|
||||
if (type) {
|
||||
if (item.thumbSmall) {
|
||||
item.$extended.find('.icon.small img').addClass('thumb').attr('src', item.thumbSmall);
|
||||
item.$view.find('.icon.small img').addClass('thumb').attr('src', item.thumbSmall);
|
||||
} else {
|
||||
requestThumbSmall(type, item.absHref, function (src) {
|
||||
|
||||
if (src && item.$extended) {
|
||||
if (src && item.$view) {
|
||||
item.thumbSmall = src;
|
||||
item.$extended.find('.icon.small img').addClass('thumb').attr('src', src);
|
||||
item.$view.find('.icon.small img').addClass('thumb').attr('src', src);
|
||||
}
|
||||
});
|
||||
}
|
||||
if (item.thumbBig) {
|
||||
item.$extended.find('.icon.big img').addClass('thumb').attr('src', item.thumbBig);
|
||||
item.$view.find('.icon.big img').addClass('thumb').attr('src', item.thumbBig);
|
||||
} else {
|
||||
requestThumbBig(type, item.absHref, function (src) {
|
||||
|
||||
if (src && item.$extended) {
|
||||
if (src && item.$view) {
|
||||
item.thumbBig = src;
|
||||
item.$extended.find('.icon.big img').addClass('thumb').attr('src', src);
|
||||
item.$view.find('.icon.big img').addClass('thumb').attr('src', src);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue