mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-28 14:04:45 -04:00
Removes artifical delay.
This commit is contained in:
parent
0c9f1655c6
commit
b3ffd4f621
2 changed files with 4 additions and 4 deletions
|
@ -100,8 +100,8 @@ modulejs.define('ext/preview-img', ['_', '$', 'core/settings', 'core/resource',
|
||||||
var $img = $('<img/>')
|
var $img = $('<img/>')
|
||||||
.one('load', function () {
|
.one('load', function () {
|
||||||
|
|
||||||
// callback($img);
|
callback($img);
|
||||||
setTimeout(function () { callback($img); }, 1000); // for testing
|
// setTimeout(function () { callback($img); }, 1000); // for testing
|
||||||
})
|
})
|
||||||
.attr('src', src);
|
.attr('src', src);
|
||||||
},
|
},
|
||||||
|
|
|
@ -149,8 +149,8 @@ modulejs.define('ext/preview-txt', ['_', '$', 'core/settings', 'core/resource',
|
||||||
dataType: 'text',
|
dataType: 'text',
|
||||||
success: function (content) {
|
success: function (content) {
|
||||||
|
|
||||||
// callback(content);
|
callback(content);
|
||||||
setTimeout(function () { callback(content); }, 1000); // for testing
|
// setTimeout(function () { callback(content); }, 1000); // for testing
|
||||||
},
|
},
|
||||||
error: function (jqXHR, textStatus, errorThrown) {
|
error: function (jqXHR, textStatus, errorThrown) {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue