/** * Roundcube functions for default skin interface * * Copyright (c) The Roundcube Dev Team * * The contents are subject to the Creative Commons Attribution-ShareAlike * License. It is allowed to copy, distribute, transmit and to adapt the work * by keeping credits to the original autors in the README file. * See http://creativecommons.org/licenses/by-sa/3.0/ for details. * * @license magnet:?xt=urn:btih:90dc5c0be029de84e523b9b3922520e79e0e6f08&dn=cc0.txt CC0-1.0 */ /* magnet:?xt=urn:btih:90dc5c0be029de84e523b9b3922520e79e0e6f08&dn=cc0.txt CC0-1.0 */ function rcube_mail_ui(){function k(a){u||(u=rcmail.local_storage_get_item("prefs.larry",{}));if(null==u[a]){var c=rcmail.get_cookie(a);null!=c&&(u[a]=c,rcmail.local_storage_set_item("prefs.larry",u)&&rcmail.set_cookie(a,c,new Date))}return u[a]}function v(a,c){u[a]=c;if(!rcmail.local_storage_set_item("prefs.larry",u)){var b=new Date;b.setYear(b.getFullYear()+1);rcmail.set_cookie(a,c,b)}}function w(a){a=a?10:0;rcmail.resize_timeout&&window.clearTimeout(rcmail.resize_timeout);rcmail.resize_timeout= window.setTimeout(function(){"mail"==rcmail.env.task&&("show"==rcmail.env.action||"preview"==rcmail.env.action?e():"compose"==rcmail.env.action&&x());$("body.iframe .footerleft").each(function(){var c=$(this),b=$(document.body),d=c.hasClass("floating"),f=b.outerHeight(!0)>$(window).height();f!=d&&(d=f?"addClass":"removeClass",c[d]("floating"),b[d]("floatingbuttons"))})},a)}function p(a){var c=$(a.object).siblings("div");c.length&&$(a.object).insertBefore(c.first());if("error"==a.type&&"login"!=rcmail.env.task){rcmail.hide_message(a.object); r.message_timer&&window.clearTimeout(r.message_timer);r.messagedialog||(r.messagedialog=$("
"+a.message+"
");r.messagedialog.html(c).dialog({resizable:!1,closeOnEscape:!0,dialogClass:a.type,title:rcmail.gettext("errortitle"),close:b,hide:{effect:"fadeOut"},width:420, minHeight:90}).show();r.messagedialog.closest("div[role=dialog]").attr("role","alertdialog");0