Who needs redundancies anyway
This commit is contained in:
parent
82cc82c30d
commit
5779893f7f
@ -2410,7 +2410,7 @@
|
||||
return $.add(strong, a);
|
||||
},
|
||||
update: function(pageNum) {
|
||||
var now, onload, _ref, _ref1;
|
||||
var onload, _ref, _ref1;
|
||||
if (!navigator.onLine) {
|
||||
return;
|
||||
}
|
||||
@ -2420,18 +2420,6 @@
|
||||
if ((_ref1 = Index.notice) != null) {
|
||||
_ref1.close();
|
||||
}
|
||||
if (d.readyState !== 'loading') {
|
||||
|
||||
} else {
|
||||
now = Date.now();
|
||||
$.ready(function() {
|
||||
return setTimeout((function() {
|
||||
if (!(Index.req && !Index.notice)) {
|
||||
|
||||
}
|
||||
}), 5 * $.SECOND - (Date.now() - now));
|
||||
});
|
||||
}
|
||||
if (typeof pageNum !== 'number') {
|
||||
pageNum = null;
|
||||
}
|
||||
|
||||
@ -2420,7 +2420,7 @@
|
||||
return $.add(strong, a);
|
||||
},
|
||||
update: function(pageNum) {
|
||||
var now, onload, _ref, _ref1;
|
||||
var onload, _ref, _ref1;
|
||||
if (!navigator.onLine) {
|
||||
return;
|
||||
}
|
||||
@ -2430,18 +2430,6 @@
|
||||
if ((_ref1 = Index.notice) != null) {
|
||||
_ref1.close();
|
||||
}
|
||||
if (d.readyState !== 'loading') {
|
||||
|
||||
} else {
|
||||
now = Date.now();
|
||||
$.ready(function() {
|
||||
return setTimeout((function() {
|
||||
if (!(Index.req && !Index.notice)) {
|
||||
|
||||
}
|
||||
}), 5 * $.SECOND - (Date.now() - now));
|
||||
});
|
||||
}
|
||||
if (typeof pageNum !== 'number') {
|
||||
pageNum = null;
|
||||
}
|
||||
|
||||
@ -203,15 +203,6 @@ Index =
|
||||
return unless navigator.onLine
|
||||
Index.req?.abort()
|
||||
Index.notice?.close()
|
||||
if d.readyState isnt 'loading'
|
||||
else
|
||||
# Delay the notice on initial page load
|
||||
# and only display it for slow connections.
|
||||
now = Date.now()
|
||||
$.ready ->
|
||||
setTimeout (->
|
||||
return unless Index.req and !Index.notice
|
||||
), 5 * $.SECOND - (Date.now() - now)
|
||||
pageNum = null if typeof pageNum isnt 'number' # event
|
||||
onload = (e) -> Index.load e, pageNum
|
||||
Index.req = $.ajax "//a.4cdn.org/#{g.BOARD}/catalog.json",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user