Current File : //root/panel/etc/apps/webmail/plugins/hide_blockquote/hide_blockquote.min.js
window.rcmail&&rcmail.addEventListener("init",function(){hide_blockquote()});
function hide_blockquote(){var b=rcmail.env.blockquote_limit;0>=b||$("pre > blockquote",$("#messagebody")).each(function(){var a,c=$(this);a=$.trim(c.text()).split(/\n/);a.length<=b&&c.height()<=15*b||(a=$('<blockquote class="blockquote-header">').css({"white-space":"nowrap",overflow:"hidden",position:"relative"}).text(a[0]),$('<span class="blockquote-link"></span>').css({position:"absolute","z-Index":2}).text(rcmail.gettext("hide_blockquote.show")).data("parent",a).click(function(){var a=$(this),
b=a.data("parent"),d=b.is(":visible");a.text(rcmail.gettext(d?"hide":"show","hide_blockquote")).detach().appendTo(d?c:b);b[d?"hide":"show"]();c[d?"show":"hide"]()}).appendTo(a),c.hide().css({position:"relative"}).before(a))})};