Browse Source

download-original.js: fix interactions

pull/40/head
czaks 10 years ago
parent
commit
557fbe91b4
  1. 8
      js/download-original.js

8
js/download-original.js

@ -15,7 +15,7 @@
*/
onready(function(){
$('.postfilename').each(function() {
var do_original_filename = function() {
var filename, truncated;
if ($(this).attr('title')) {
filename = $(this).attr('title');
@ -31,5 +31,11 @@ onready(function(){
.attr('href', $(this).parent().parent().find('a').attr('href'))
.attr('title', _('Save as original filename') + (truncated ? ' (' + filename + ')' : ''))
);
};
$('.postfilename').each(do_original_filename);
$(document).bind('new_post', function(e, post) {
$(post).find('.postfilename').each(do_original_filename);
});
});

Loading…
Cancel
Save