| Server IP : 195.130.67.5 / Your IP : 216.73.216.231 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/webmail/plugins/hide_blockquote/ |
Upload File : |
/**
* 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.
*/
function hide_blockquote(){var t=rcmail.env.blockquote_limit;t<=0||$("div.message-part div.pre > blockquote",$("#messagebody")).each(function(){var e,i=$(this);$("blockquote").before(document.createTextNode("\n")),(e=i.text().trim().split(/\n/)).length<=t&&i.height()<=15*t||(e=$('<blockquote class="blockquote-header">').css({"white-space":"nowrap",overflow:"hidden",position:"relative"}).text(e[0]),$('<span class="blockquote-link"></span>').css({position:"absolute","z-Index":2}).text(rcmail.get_label("hide_blockquote.show")).data("parent",e).click(function(){var e=$(this),t=e.data("parent"),o=t.is(":visible");e.text(rcmail.get_label(o?"hide":"show","hide_blockquote")).detach().appendTo(o?i:t).toggleClass("collapsed"),t[o?"hide":"show"](),i[o?"show":"hide"]()}).appendTo(e),i.hide().css({position:"relative"}).before(e))})}window.rcmail&&rcmail.addEventListener("init",function(){hide_blockquote()});