##// END OF EJS Templates
Always show main thread for post in post link. Prefetch thread replies' thread and threads
Always show main thread for post in post link. Prefetch thread replies' thread and threads

File last commit:

r970:579d6b3a default
r984:c2eb220a default
Show More
form.js
21 lines | 640 B | application/javascript | JavascriptLexer
neko259
When swapping the form view, move elements of one form instead of swapping 2...
r698 var isCompact = false;
neko259
Added image preview in the forms
r673
neko259
Updated form to a new style. Fixed mark manel
r680 $('input[name=image]').wrap($('<div class="file_wrap"></div>'));
neko259
Added a compact form to the thread.
r676
$('body').on('change', 'input[name=image]', function(event) {
neko259
Added image preview in the forms
r673 var file = event.target.files[0];
if(file.type.match('image.*')) {
var fileReader = new FileReader();
fileReader.addEventListener("load", function(event) {
neko259
Updated form to a new style. Fixed mark manel
r680 var wrapper = $('.file_wrap');
wrapper.find('.file-thumb').remove();
wrapper.append(
$('<div class="file-thumb" style="background-image: url('+event.target.result+')"></div>')
neko259
Added image preview in the forms
r673 );
});
fileReader.readAsDataURL(file);
}
neko259
Removed compact form
r970 });