mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-05-06 14:37:55 +02:00
fix(torrents): fixed torrent images issue of reorganize
This commit is contained in:
@@ -47,7 +47,7 @@
|
||||
angular.element(i.parentElement).remove();
|
||||
} else {
|
||||
if (i.previousSibling && i.previousSibling.tagName.toUpperCase() === 'BR') {
|
||||
i.previousSibling.remove();
|
||||
angular.element(i.previousSibling).remove();
|
||||
}
|
||||
angular.element(i).remove();
|
||||
}
|
||||
@@ -70,7 +70,7 @@
|
||||
var item = angular.element(i);
|
||||
var src = item.attr('src');
|
||||
var nsrc = src.substr(0, src.lastIndexOf('/') + 1) + 'crop/' + src.substr(src.lastIndexOf('/') + 1);
|
||||
console.log(nsrc);
|
||||
|
||||
item.attr('on-error-src', item.attr('src'));
|
||||
item.attr('src', nsrc);
|
||||
item.addClass('img-item');
|
||||
|
||||
Reference in New Issue
Block a user