Fix preview inside options for File Info. Update changelog.

This commit is contained in:
ahodesuka 2012-02-22 10:08:38 -06:00
parent abea2d7c83
commit 8bc1a4c176
3 changed files with 10 additions and 7 deletions

View File

@ -2332,6 +2332,7 @@
return $.id('backlinkPreview').textContent = conf['backlink'].replace(/%id/, '123456789'); return $.id('backlinkPreview').textContent = conf['backlink'].replace(/%id/, '123456789');
}, },
fileInfo: function() { fileInfo: function() {
FileInfo.ffType = this.name === 'fileInfoR' ? 0 : 1;
FileInfo.data = { FileInfo.data = {
link: '<a href="javascript:;">1329791824.png</a>', link: '<a href="javascript:;">1329791824.png</a>',
size: 996, size: 996,
@ -2340,7 +2341,7 @@
filename: 'Untitled.png' filename: 'Untitled.png'
}; };
FileInfo.funks = FileInfo.setFormats(); FileInfo.funks = FileInfo.setFormats();
return $.id("" + this.name + "Preview").innerHTML = FileInfo.funks[this.name === 'fileInfoR' ? 0 : 1](FileInfo); return $.id("" + this.name + "Preview").innerHTML = FileInfo.funks[FileInfo.ffType](FileInfo);
}, },
favicon: function() { favicon: function() {
Favicon["switch"](); Favicon["switch"]();

View File

@ -1,4 +1,10 @@
master master
-ahodesuka
Reply/Thread File Info Formatting:
- Link: %l, %L (Original file names are shown inside threads).
- Size: %B (Bytes), %K (KB), %M (MB), %s (4chan default).
- Resolution/PDF: %r
- Original filename: %n, %N.
2.27.1 2.27.1
- Mayhem - Mayhem
@ -11,11 +17,6 @@ master
- ahodesuka - ahodesuka
Add Open Reply in New Tab option for replies made from the main board (not dumping). Add Open Reply in New Tab option for replies made from the main board (not dumping).
Scroll back up (top of anchor - 42px) when unexpanding images. Scroll back up (top of anchor - 42px) when unexpanding images.
Reply/Thread File Info Formatting:
- Link: %l, %L (Original file names are shown inside threads).
- Size: %B (Bytes), %K (KB), %M (MB), %s (4chan default).
- Resolution/PDF: %r
- Original filename: %n, %N.
- Mayhem - Mayhem
The Filter now has per filter settings: The Filter now has per filter settings:
- Filter the OP only along its thread, replies only, or both. - Filter the OP only along its thread, replies only, or both.

View File

@ -1914,6 +1914,7 @@ options =
backlink: -> backlink: ->
$.id('backlinkPreview').textContent = conf['backlink'].replace /%id/, '123456789' $.id('backlinkPreview').textContent = conf['backlink'].replace /%id/, '123456789'
fileInfo: -> fileInfo: ->
FileInfo.ffType = if @name is 'fileInfoR' then 0 else 1
FileInfo.data = FileInfo.data =
link : '<a href="javascript:;">1329791824.png</a>' link : '<a href="javascript:;">1329791824.png</a>'
size : 996 size : 996
@ -1921,7 +1922,7 @@ options =
resolution: '1366x768' resolution: '1366x768'
filename : 'Untitled.png' filename : 'Untitled.png'
FileInfo.funks = FileInfo.setFormats() FileInfo.funks = FileInfo.setFormats()
$.id("#{@name}Preview").innerHTML = FileInfo.funks[if @name is 'fileInfoR' then 0 else 1] FileInfo $.id("#{@name}Preview").innerHTML = FileInfo.funks[FileInfo.ffType] FileInfo
favicon: -> favicon: ->
Favicon.switch() Favicon.switch()
unread.update true unread.update true