Browse Source

quick-reply.js and oekaki.js interoperation fix

pull/40/head
czaks 11 years ago
parent
commit
3af05ed55b
  1. 2
      js/oekaki.js
  2. 5
      js/quick-reply.js

2
js/oekaki.js

@ -16,7 +16,7 @@ var oekaki_form = '\
function init_oekaki() {
// Add oekaki after the file input
$('input[type="file"]').parent().parent().after(oekaki_form);
$('form[name="post"]:not(#quick-reply) input[type="file"]').parent().parent().after(oekaki_form);
// Add "edit in oekaki" links
$(".fileinfo .unimportant").append(' <a href="javascript:void(0)" class="edit_in_oekaki">['+_('Edit in oekaki')+']</a>');
// Init oekaki vars

5
js/quick-reply.js

@ -232,6 +232,11 @@ var show_quick_reply = function(){
$td.removeAttr('colspan');
}
}
// Remove oekaki if existent
if ($(this).is('#oekaki')) {
$(this).remove();
}
// Remove mod controls, because it looks shit.
if ($td.find('input[type="checkbox"]').length) {

Loading…
Cancel
Save