Return asap, remove braces.
This commit is contained in:
parent
b1256e1754
commit
2114c86866
@ -2022,7 +2022,7 @@
|
|||||||
input.disabled = true;
|
input.disabled = true;
|
||||||
input.value = 404;
|
input.value = 404;
|
||||||
}
|
}
|
||||||
d.title = d.title.match(/.+-/)[0] + ' 404';
|
d.title = d.title.match(/^.+-/)[0] + ' 404';
|
||||||
g.dead = true;
|
g.dead = true;
|
||||||
Favicon.update();
|
Favicon.update();
|
||||||
return;
|
return;
|
||||||
@ -2035,7 +2035,6 @@
|
|||||||
This saves bandwidth for both the user and the servers, avoid unnecessary computation,
|
This saves bandwidth for both the user and the servers, avoid unnecessary computation,
|
||||||
and won't load images and scripts when parsing the response.
|
and won't load images and scripts when parsing the response.
|
||||||
*/
|
*/
|
||||||
updater.lastModified = this.getResponseHeader('Last-Modified');
|
|
||||||
if (this.status === 304) {
|
if (this.status === 304) {
|
||||||
if (conf['Verbose']) {
|
if (conf['Verbose']) {
|
||||||
updater.count.textContent = '+0';
|
updater.count.textContent = '+0';
|
||||||
@ -2043,6 +2042,7 @@
|
|||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
updater.lastModified = this.getResponseHeader('Last-Modified');
|
||||||
body = $.el('body', {
|
body = $.el('body', {
|
||||||
innerHTML: this.responseText
|
innerHTML: this.responseText
|
||||||
});
|
});
|
||||||
|
|||||||
@ -1616,8 +1616,7 @@ updater =
|
|||||||
for input in $$ '#com_submit'
|
for input in $$ '#com_submit'
|
||||||
input.disabled = true
|
input.disabled = true
|
||||||
input.value = 404
|
input.value = 404
|
||||||
# XXX trailing spaces are trimmed
|
d.title = d.title.match(/^.+-/)[0] + ' 404'
|
||||||
d.title = d.title.match(/.+-/)[0] + ' 404'
|
|
||||||
g.dead = true
|
g.dead = true
|
||||||
Favicon.update()
|
Favicon.update()
|
||||||
return
|
return
|
||||||
@ -1631,12 +1630,12 @@ updater =
|
|||||||
This saves bandwidth for both the user and the servers, avoid unnecessary computation,
|
This saves bandwidth for both the user and the servers, avoid unnecessary computation,
|
||||||
and won't load images and scripts when parsing the response.
|
and won't load images and scripts when parsing the response.
|
||||||
###
|
###
|
||||||
updater.lastModified = @getResponseHeader('Last-Modified')
|
|
||||||
if @status is 304
|
if @status is 304
|
||||||
if conf['Verbose']
|
if conf['Verbose']
|
||||||
updater.count.textContent = '+0'
|
updater.count.textContent = '+0'
|
||||||
updater.count.className = null
|
updater.count.className = null
|
||||||
return
|
return
|
||||||
|
updater.lastModified = @getResponseHeader 'Last-Modified'
|
||||||
|
|
||||||
body = $.el 'body',
|
body = $.el 'body',
|
||||||
innerHTML: @responseText
|
innerHTML: @responseText
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user