mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-03-20 04:20:00 +01:00
Cleans code.
This commit is contained in:
parent
2282a0ba71
commit
b6d6bf8ba7
@ -129,16 +129,12 @@ modulejs.define('ext/preview-img', ['_', '$', 'core/settings', 'core/resource',
|
||||
clearTimeout(spinnerTimeout);
|
||||
$container.spin(false);
|
||||
|
||||
// $img.hide().attr('src', src).fadeIn(100);
|
||||
$img.fadeOut(100, function () {
|
||||
|
||||
$img.attr('src', src).fadeIn(200);
|
||||
setTimeout(adjustSize, 1);
|
||||
});
|
||||
|
||||
// adjustSize();
|
||||
// setTimeout(adjustSize, 1);
|
||||
|
||||
$('#preview-bar-label').text(currentEntries[currentIdx].label);
|
||||
$('#preview-bar-percent').text('' + (100 * $img.width() / width).toFixed(0) + '%');
|
||||
$('#preview-bar-size').text('' + width + 'x' + height);
|
||||
|
Loading…
x
Reference in New Issue
Block a user