mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-03-24 06:20:07 +01:00
Removes artifical delay.
This commit is contained in:
parent
0c9f1655c6
commit
b3ffd4f621
@ -100,8 +100,8 @@ modulejs.define('ext/preview-img', ['_', '$', 'core/settings', 'core/resource',
|
||||
var $img = $('<img/>')
|
||||
.one('load', function () {
|
||||
|
||||
// callback($img);
|
||||
setTimeout(function () { callback($img); }, 1000); // for testing
|
||||
callback($img);
|
||||
// setTimeout(function () { callback($img); }, 1000); // for testing
|
||||
})
|
||||
.attr('src', src);
|
||||
},
|
||||
|
@ -149,8 +149,8 @@ modulejs.define('ext/preview-txt', ['_', '$', 'core/settings', 'core/resource',
|
||||
dataType: 'text',
|
||||
success: function (content) {
|
||||
|
||||
// callback(content);
|
||||
setTimeout(function () { callback(content); }, 1000); // for testing
|
||||
callback(content);
|
||||
// setTimeout(function () { callback(content); }, 1000); // for testing
|
||||
},
|
||||
error: function (jqXHR, textStatus, errorThrown) {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user