Fix file accidentally renaming, from Mayhem

This commit is contained in:
Jordan Bates 2013-09-12 16:12:15 -07:00
parent bc0f30612c
commit 0cc8d1aef4
4 changed files with 10 additions and 6 deletions

View File

@ -1,5 +1,5 @@
/* /*
* 4chan X - Version 1.2.36 - 2013-08-26 * 4chan X - Version 1.2.36 - 2013-09-12
* *
* Licensed under the MIT license. * Licensed under the MIT license.
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE * https://github.com/seaweedchan/4chan-x/blob/master/LICENSE

View File

@ -22,7 +22,7 @@
// ==/UserScript== // ==/UserScript==
/* /*
* 4chan X - Version 1.2.36 - 2013-08-26 * 4chan X - Version 1.2.36 - 2013-09-12
* *
* Licensed under the MIT license. * Licensed under the MIT license.
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE * https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
@ -5797,7 +5797,9 @@
this.nodes.label.hidden = false; this.nodes.label.hidden = false;
} }
URL.revokeObjectURL(this.URL); URL.revokeObjectURL(this.URL);
this.showFileData(); if (this === QR.selected) {
this.showFileData();
}
if (!/^image/.test(file.type)) { if (!/^image/.test(file.type)) {
this.nodes.el.style.backgroundImage = null; this.nodes.el.style.backgroundImage = null;
return; return;

View File

@ -1,6 +1,6 @@
// Generated by CoffeeScript // Generated by CoffeeScript
/* /*
* 4chan X - Version 1.2.36 - 2013-08-26 * 4chan X - Version 1.2.36 - 2013-09-12
* *
* Licensed under the MIT license. * Licensed under the MIT license.
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE * https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
@ -5801,7 +5801,9 @@
this.nodes.label.hidden = false; this.nodes.label.hidden = false;
} }
URL.revokeObjectURL(this.URL); URL.revokeObjectURL(this.URL);
this.showFileData(); if (this === QR.selected) {
this.showFileData();
}
if (!/^image/.test(file.type)) { if (!/^image/.test(file.type)) {
this.nodes.el.style.backgroundImage = null; this.nodes.el.style.backgroundImage = null;
return; return;

View File

@ -665,7 +665,7 @@ QR =
@filesize = $.bytesToString file.size @filesize = $.bytesToString file.size
@nodes.label.hidden = false if QR.spoiler @nodes.label.hidden = false if QR.spoiler
URL.revokeObjectURL @URL URL.revokeObjectURL @URL
@showFileData() @showFileData() if @ is QR.selected
unless /^image/.test file.type unless /^image/.test file.type
@nodes.el.style.backgroundImage = null @nodes.el.style.backgroundImage = null
return return