/** * Roundcube functions for default skin interface * * Copyright (c) 2013, 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 f(a){p||(p=rcmail.local_storage_get_item("prefs.larry",{}));if(null==p[a]){var d=rcmail.get_cookie(a);null!=d&&(p[a]=d,rcmail.local_storage_set_item("prefs.larry",p)&&rcmail.set_cookie(a,d,new Date))}return p[a]}function q(a,d){p[a]=d;if(!rcmail.local_storage_set_item("prefs.larry",p)){var c=new Date;c.setYear(c.getFullYear()+1);rcmail.set_cookie(a,d,c)}}function s(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?v():"compose"==rcmail.env.action&&t());$("body.iframe .footerleft").each(function(){var a=$(this),c=$(document.body),b=a.hasClass("floating"),g=c.outerHeight(!0)>$(window).height();g!=b&&(b=g?"addClass":"removeClass",a[b]("floating"),c[b]("floatingbuttons"))})},a)}function k(a){var d=$(a.object).siblings("div");d.length&&$(a.object).insertBefore(d.first());if("error"==a.type&&"login"!=rcmail.env.task){rcmail.hide_message(a.object); l.message_timer&&window.clearTimeout(l.message_timer);l.messagedialog||(l.messagedialog=$("
"+a.message+"
");l.messagedialog.html(d).dialog({resizable:!1,closeOnEscape:!0,dialogClass:"popupmessage "+a.type,title:r.errortitle,close:c,position:["center","center"],hide:{effect:"fadeOut"}, width:420,minHeight:90}).show();l.messagedialog.closest("div[role=dialog]").attr("role","alertdialog");0