HOME


Mini Shell 1.0
DIR:/usr/local/cwpsrv/var/services/roundcubemail-1.4.11/public_html/plugins/help/
Upload File :
Current File : //usr/local/cwpsrv/var/services/roundcubemail-1.4.11/public_html/plugins/help/help.min.js
/**
 * Help plugin client 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("beforeswitch-task",function(a){if("help"==a){if("help"==rcmail.task)return!1;a=rcmail.url("help/index",{_rel:rcmail.task+(rcmail.env.action?"/"+rcmail.env.action:"")});rcmail.env.help_open_extwin?rcmail.open_window(a,1020,!1):rcmail.redirect(a,!1);return!1}}),rcmail.addEventListener("init",function(a){if(rcmail.env.contentframe&&"help"==rcmail.task){$("#"+rcmail.env.contentframe).on("load error",function(c){rcmail.set_busy(!1,null,rcmail.env.frame_lock);rcmail.env.frame_lock=
null;"load"==c.type&&($(rcmail.env.help_action_item).parents("ul").children().removeClass("selected"),$(rcmail.env.help_action_item).parent().addClass("selected"))});try{var d=rcmail.get_frame_window(rcmail.env.contentframe);d&&0<=d.location.href.indexOf(rcmail.env.blankpage)&&show_help_content(rcmail.env.action)}catch(c){}}}));
function show_help_content(a,d){var c,e=window,b=rcmail.env.help_links[a];if(c=rcmail.get_frame_window(rcmail.env.contentframe))e=c,b+=(-1<b.indexOf("?")?"&":"?")+"_framed=1";rcmail.env.extwin&&(b+=(-1<b.indexOf("?")?"&":"?")+"_extwin=1");/^self/.test(b)&&(b=b.substr(4)+"&_content=1&_task=help&_action="+a);rcmail.env.help_action_item=d?d.target:$('[rel="'+a+'"]');rcmail.show_contentframe(!0);rcmail.location_href(b,e,!0);return!1};