HEX
Server: Apache/2.4.41 (FreeBSD) OpenSSL/1.0.2s mod_fcgid/2.3.9
System: FreeBSD salazo 12.0-RELEASE-p1303-ZFS hostBSD 12.0-RELEASE-p1303-ZFS DMR amd64
User: admin (1000)
PHP: 7.4.3
Disabled: NONE
Upload Files
File: /usr/local/www/roundcube_old/plugins/hide_blockquote/hide_blockquote.min.js
/**
 * Hide Blockquotes plugin script
 *
 * @licstart  The following is the entire license notice for the
 * JavaScript code in this file.
 *
 * Copyright (c) The Roundcube Dev Team
 *
 * The JavaScript code in this page is free software: you can redistribute it
 * and/or modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation, either version 3 of
 * the License, or (at your option) any later version.
 *
 * @licend  The above is the entire license notice
 * for the JavaScript code in this file.
 */
window.rcmail&&rcmail.addEventListener("init",function(){hide_blockquote()});
function hide_blockquote(){var b=rcmail.env.blockquote_limit;0>=b||$("div.message-part div.pre > blockquote",$("#messagebody")).each(function(){var c=$(this);$("blockquote").before(document.createTextNode("\n"));var 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.get_label("hide_blockquote.show")).data("parent",
a).click(function(){var a=$(this),b=a.data("parent"),d=b.is(":visible");a.text(rcmail.get_label(d?"hide":"show","hide_blockquote")).detach().appendTo(d?c:b).toggleClass("collapsed");b[d?"hide":"show"]();c[d?"show":"hide"]()}).appendTo(a),c.hide().css({position:"relative"}).before(a))})};