[Hastymail-cvs] SF.net SVN: hastymail:[1413] trunk/hastymail2/js
Brought to you by:
sailfrog,
slushpupie
From: <sai...@us...> - 2010-04-05 18:01:45
|
Revision: 1413 http://hastymail.svn.sourceforge.net/hastymail/?rev=1413&view=rev Author: sailfrog Date: 2010-04-05 18:01:39 +0000 (Mon, 05 Apr 2010) Log Message: ----------- add a simple timer reset function Modified Paths: -------------- trunk/hastymail2/js/site-min.js trunk/hastymail2/js/site-min2.js trunk/hastymail2/js/site.js Modified: trunk/hastymail2/js/site-min.js =================================================================== --- trunk/hastymail2/js/site-min.js 2010-04-05 18:01:00 UTC (rev 1412) +++ trunk/hastymail2/js/site-min.js 2010-04-05 18:01:39 UTC (rev 1413) @@ -1,2 +1,2 @@ -eval(function(p,a,c,k,e,r){e=function(c){return(c<62?'':e(parseInt(c/62)))+((c=c%62)>35?String.fromCharCode(c+29):c.toString(36))};if('0'.replace(0,e)==0){while(c--)r[e(c)]=k[c];k=[function(e){return r[e]||e}];e=function(){return'([9q-wyzA-Z]|[12]\\w)'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('s 11=1000;s 12=null;s L=0;s B={};s 14=t;R.onbeforeunload=u(){14=J};u 15(a){r(disable_hl){y t}r(a.B){a.E.E.M=\'hl_row\'}z{a.E.E.M=\'normal_row\'}y t}u 16(a,b){r(9.q(\'N\')){C(\'<1j><b><i>\'+b+\'<\\/i><\\/b></1j>\',9.q("N"))}r(a){a.form.submit()}}u 1k(a){s b=0;r(9.q("1l")){b=9.q("1l").v}r(b==1){y confirm(a)}z{y J}}u expand_folder(a,b){r(!9.q(a)){r(9.q(b).D==\'-\'){9.q(b).D=\'+\';9.q(b).E.M=\'1m\'}z{9.q(b).D=\'-\';9.q(b).E.M=\'1n\'}y t}r(9.q(a).w.A==\'O\'){9.q(a).w.A=\'F\';9.q(b).D=\'+\';9.q(b).E.M=\'1m\'}z{9.q(a).w.A=\'O\';9.q(b).D=\'-\';9.q(b).E.M=\'1n\'}y t}u 1o(h,f){r(9.q("1p")){s g=9.q("1p").v}z{s g=t}r(9.q("show_pages")){s 17=J}z{s 17=t}16(t,update_notice);u j(a){s b=a.split(\'^^\'+g+\'^^\');r(b.1q==8){r(b[0]){C(b[0],9.q("new_page"));18()}r(b[1]){C(b[1],9.q("dd_inner"))}r(b[2]){C(b[2],9.q("N"))}r(b[3]){C(b[3],9.q("unread_total"))}r(b[4]){s c=9.createElement("textarea");c.D=b[4];s d=c.v;9.title=d}r(b[5]){C(b[5],9.q("folder_outer"))}r(b[6]){C(b[6],9.q("mbx_inner"));18()}r(b[7]){C(b[7],9.q("mailbox_title"))}}C(\'\',9.q(\'S\'))}x_ajax_update_page(t,h,g,f,T,do_folder_list,mailbox_page,sort_by,filter_by,17,j)}u toggle_all(a,b,c){s d=0;s h=0;s f=0;s g=\'G\';r(c){g=c}r(a&&b){d=b;h=a}z{r(9.q("19")){d=9.q("19").v;h=1}}r(h&&d){U(f=h;f<=d;f++){r(9.q(g+f)){r(9.q(g+f).B){9.q(g+f).B=t}z{9.q(g+f).B=\'B\'}1r(f)}}}}u 1r(a){s b=9.q("G"+a).v;s c=9.q("G"+a).B;r(c){B[b]=9.q("1s-"+b+"").v}z{B[b]=t}15(9.q("G"+a))}u 18(){s a=9.q("19").v;s b;s c;s d;s h=\'\';U(1a in B){h+=1a+\' \'+B[1a]}U(K=1;K<a;K++){r(9.q("G"+K)){b=9.q("G"+K).v;d=9.q("1s-"+b+"").v;r(B[b]==d){9.q("G"+K).B=J;15(9.q("G"+K))}}}}u show_prev_next(a){r(9.q(a)){r(9.q(a).w.A==\'F\'){9.q(a).w.A="O"}z{9.q(a).w.A="F"}}}u check_search_submit(a){r(a.keyCode==13||a.which==13){9.q("search_button").click();y t}z{y J}}u show_contacts(){r(9.q("V")){r(9.q("V").w.A==\'F\'){9.q("V").w.A=\'O\';9.q("1t").v=1}z{9.q("V").w.A=\'F\';9.q("1t").v=0}}}u add_address(a){r(9.q(a)){r(9.q("1u")){s b=9.q("1u");s c;s d=9.q(a).v;while(b.H!=-1){c=b.W[b.H].v;b.W[b.H].selected=t;r(d){d=d+\', \'}d=d+c}9.q(a).v=d;b.H=-1}}}u 1v(){s b=t;s c=t;s d=t;s h=t;s f=t;s g=t;s j=t;s k=t;s l=t;s m=t;s n=t;r(9.q("1w")){b=9.q("1w").v}r(9.q("1x")){d=9.q("1x").v}r(9.q("1y")){f=9.q("1y").v}r(9.q("1z")){c=9.q("1z").v}r(!d&&!f&&!c&&!b){y}r(9.q("1A")){h=9.q("1A").H}r(9.q("1B")){n=9.q("1B").v}r(9.q("1b")){g=9.q("1b").v}r(9.q("1C")){j=9.q("1C").v}r(9.q("1D")){k=9.q("1D").v}r(9.q("1E")){l=9.q("1E").H+1}r(9.q("1F")){m=9.q("1F").B}s o;r(9.q(\'N\')){o=9.q("N").D}u p(a){r(a){9.q("1b").v=a}9.q("N").D=o}16(t,\'Auto-saving message ...\');x_ajax_save_outgoing_message(t,b,c,d,f,h,g,j,k,l,m,n,p)}u C(a,b){r(b){b.D=a}y}u 1c(){L=L+1;r(1G&&L%1G==0){1v()}r(new_win){12=1H.1I("1c()",11);y}r((T&&L%T==0)||(L%update_delay==0&&1J&&!T)){1o(1J,page_title);r(1d){U(i=0;i<1d.1q;i++){1e{R[1d[i]]()}1f(e){}}}}r(14){1e{sajax_cancel()}1f(e){}y}12=1H.1I("1c()",11)}u get_contact_page(b){u c(a){C(a,9.q("compose_contacts"))}r(b){x_ajax_next_contacts(1,c)}z{x_ajax_prev_contacts(0,c)}}u 1g(a){x_ajax_save_folder_vis_state(t,a,t)}u hide_folder_list(){r(9.q("X")){r(9.q("X").w.A==\'F\'){9.q("X").w.A=\'O\';9.q("1K").w.A=\'F\';1g(0)}z{9.q("X").w.A=\'F\';9.q("1K").w.A=\'inline\';1g(1)}}}u save_folder_state(a){x_ajax_save_folder_state(t,a,t);y t}u check_prev_next_del(a){s b=9.q(\'1L\').v;r(b==\'delete\'){y 1k(a)}z{y J}}u disable_destination(){s a=9.q(\'1L\');s b=a.W[a.H].v;r(b==\'move\'||b==\'copy\'){9.q(\'1M\').1N=t}z{9.q(\'1M\').1N=J}}u autoAdjustIFrame(a){1e{r(a.Q.Y.Z.indexOf(\'http\')!=-1){s b=a.Q.9.body;s c=Math.max(b.offsetHeight,b.scrollHeight);c+=40;r(c>640){a.w.I="1P";a.w.I=c+"px"}z{r(a.Q.9.1h){r(a.Q.9.1h.1Q){c=a.Q.9.1h.1Q(b,"").getPropertyValue("I")}}z{r(b.1R["I"]){c=b.1R["I"]}}c=c.replace(/px$/,\'\');c=c*1+40;r(c<1S){c=1S}a.w.minHeight=c+"px";a.w.I="1P";a.w.I=c+"px"}y c}}1f(err){}}u open_window(a,b,c,d){r(!d){d=1T()}R.1U(a,d,\'scrollbars=1V,statusbar=no,resizable=1V,width=\'+b+\',I=\'+c);y t}u refresh_parent(){r(P&&P.1i){P.1i()}y t}u 1i(){9.Y.Z=9.Y.Z;y t}u 1W(a){r(P&&P.1W){P.9.Y.Z=a}z{R.1U(a,\'_0\',\'\')}}u check_full_mailbox(){r(9.q("1X")){s a=9.q("1X");s b=a.W[a.H].v;r(b==1){alert(full_mbox_warning)}}}u send_message(a){r(9.q(\'S\')){9.q(\'S\').w.A=\'O\';C(a,9.q("S"))}9.q(\'send_btn\').w.1Y=\'1Z\';9.q(\'send_btn2\').w.1Y=\'1Z\'}u 1T(){s a=new Date;y\'x\'+a.getTime()+\'x\'}',[],124,'|||||||||document|||||||||||||||||getElementById|if|var|false|function|value|style||return|else|display|checked|innerXHTML|innerHTML|parentNode|none|message_|selectedIndex|height|true|index|secs|className|clock_div|block|opener|contentWindow|window|notices|do_new_page_refresh|for|contacts_select|options|folder_cell_inner|location|href||delay|timerID||loading|highlight_row|display_notice|show_all|restore_checked_state|page_count|key|message_id|start_timer|js_update_functions|try|catch|save_folder_vis_state|defaultView|refresh_self|div|hm_confirm|enable_delete_warning|folder|open_folder|update_page|page_id|length|save_checked_state|mailboxes|contacts_visible|contacts|autosave_message|compose_subject|compose_to|compose_cc|compose_message|compose_from|compose_session|compose_in_reply_to|compose_references|compose_priority|compose_mdn|c_autosave|self|setTimeout|do_folder_dropdown|show_folders|prev_next_action|prev_next_folder|disabled||auto|getComputedStyle|currentStyle|300|window_name|open|yes|open_parent_window|full_mailbox|visibility|hidden'.split('|'),0,{})) +eval(function(p,a,c,k,e,r){e=function(c){return(c<62?'':e(parseInt(c/62)))+((c=c%62)>35?String.fromCharCode(c+29):c.toString(36))};if('0'.replace(0,e)==0){while(c--)r[e(c)]=k[c];k=[function(e){return r[e]||e}];e=function(){return'([9q-wyzA-Z]|[12]\\w)'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('s 11=1000;s 12=null;s J=0;s B={};s 14=t;R.onbeforeunload=u(){14=K};u 15(a){r(disable_hl){y t}r(a.B){a.E.E.M=\'hl_row\'}z{a.E.E.M=\'normal_row\'}y t}u 16(a,b){r(9.q(\'N\')){C(\'<1j><b><i>\'+b+\'<\\/i><\\/b></1j>\',9.q("N"))}r(a){a.form.submit()}}u 1k(a){s b=0;r(9.q("1l")){b=9.q("1l").v}r(b==1){y confirm(a)}z{y K}}u expand_folder(a,b){r(!9.q(a)){r(9.q(b).D==\'-\'){9.q(b).D=\'+\';9.q(b).E.M=\'1m\'}z{9.q(b).D=\'-\';9.q(b).E.M=\'1n\'}y t}r(9.q(a).w.A==\'O\'){9.q(a).w.A=\'F\';9.q(b).D=\'+\';9.q(b).E.M=\'1m\'}z{9.q(a).w.A=\'O\';9.q(b).D=\'-\';9.q(b).E.M=\'1n\'}y t}u 1o(h,f){r(9.q("1p")){s g=9.q("1p").v}z{s g=t}r(9.q("show_pages")){s 17=K}z{s 17=t}16(t,update_notice);u j(a){s b=a.split(\'^^\'+g+\'^^\');r(b.1q==8){r(b[0]){C(b[0],9.q("new_page"));18()}r(b[1]){C(b[1],9.q("dd_inner"))}r(b[2]){C(b[2],9.q("N"))}r(b[3]){C(b[3],9.q("unread_total"))}r(b[4]){s c=9.createElement("textarea");c.D=b[4];s d=c.v;9.title=d}r(b[5]){C(b[5],9.q("folder_outer"))}r(b[6]){C(b[6],9.q("mbx_inner"));18()}r(b[7]){C(b[7],9.q("mailbox_title"))}}C(\'\',9.q(\'S\'))}x_ajax_update_page(t,h,g,f,T,do_folder_list,mailbox_page,sort_by,filter_by,17,j)}u toggle_all(a,b,c){s d=0;s h=0;s f=0;s g=\'G\';r(c){g=c}r(a&&b){d=b;h=a}z{r(9.q("19")){d=9.q("19").v;h=1}}r(h&&d){U(f=h;f<=d;f++){r(9.q(g+f)){r(9.q(g+f).B){9.q(g+f).B=t}z{9.q(g+f).B=\'B\'}1r(f)}}}}u 1r(a){s b=9.q("G"+a).v;s c=9.q("G"+a).B;r(c){B[b]=9.q("1s-"+b+"").v}z{B[b]=t}15(9.q("G"+a))}u 18(){s a=9.q("19").v;s b;s c;s d;s h=\'\';U(1a in B){h+=1a+\' \'+B[1a]}U(L=1;L<a;L++){r(9.q("G"+L)){b=9.q("G"+L).v;d=9.q("1s-"+b+"").v;r(B[b]==d){9.q("G"+L).B=K;15(9.q("G"+L))}}}}u show_prev_next(a){r(9.q(a)){r(9.q(a).w.A==\'F\'){9.q(a).w.A="O"}z{9.q(a).w.A="F"}}}u check_search_submit(a){r(a.keyCode==13||a.which==13){9.q("search_button").click();y t}z{y K}}u show_contacts(){r(9.q("V")){r(9.q("V").w.A==\'F\'){9.q("V").w.A=\'O\';9.q("1t").v=1}z{9.q("V").w.A=\'F\';9.q("1t").v=0}}}u add_address(a){r(9.q(a)){r(9.q("1u")){s b=9.q("1u");s c;s d=9.q(a).v;while(b.H!=-1){c=b.W[b.H].v;b.W[b.H].selected=t;r(d){d=d+\', \'}d=d+c}9.q(a).v=d;b.H=-1}}}u 1v(){s b=t;s c=t;s d=t;s h=t;s f=t;s g=t;s j=t;s k=t;s l=t;s m=t;s n=t;r(9.q("1w")){b=9.q("1w").v}r(9.q("1x")){d=9.q("1x").v}r(9.q("1y")){f=9.q("1y").v}r(9.q("1z")){c=9.q("1z").v}r(!d&&!f&&!c&&!b){y}r(9.q("1A")){h=9.q("1A").H}r(9.q("1B")){n=9.q("1B").v}r(9.q("1b")){g=9.q("1b").v}r(9.q("1C")){j=9.q("1C").v}r(9.q("1D")){k=9.q("1D").v}r(9.q("1E")){l=9.q("1E").H+1}r(9.q("1F")){m=9.q("1F").B}s o;r(9.q(\'N\')){o=9.q("N").D}u p(a){r(a){9.q("1b").v=a}9.q("N").D=o}16(t,\'Auto-saving message ...\');x_ajax_save_outgoing_message(t,b,c,d,f,h,g,j,k,l,m,n,p)}u C(a,b){r(b){b.D=a}y}u 1c(){J=J+1;r(1G&&J%1G==0){1v()}r(new_win){12=1H.1I("1c()",11);y}r((T&&J%T==0)||(J%update_delay==0&&1J&&!T)){1o(1J,page_title);r(1d){U(i=0;i<1d.1q;i++){1e{R[1d[i]]()}1f(e){}}}}r(14){1e{sajax_cancel()}1f(e){}y}12=1H.1I("1c()",11)}u reset_timer(){J=0}u get_contact_page(b){u c(a){C(a,9.q("compose_contacts"))}r(b){x_ajax_next_contacts(1,c)}z{x_ajax_prev_contacts(0,c)}}u 1g(a){x_ajax_save_folder_vis_state(t,a,t)}u hide_folder_list(){r(9.q("X")){r(9.q("X").w.A==\'F\'){9.q("X").w.A=\'O\';9.q("1K").w.A=\'F\';1g(0)}z{9.q("X").w.A=\'F\';9.q("1K").w.A=\'inline\';1g(1)}}}u save_folder_state(a){x_ajax_save_folder_state(t,a,t);y t}u check_prev_next_del(a){s b=9.q(\'1L\').v;r(b==\'delete\'){y 1k(a)}z{y K}}u disable_destination(){s a=9.q(\'1L\');s b=a.W[a.H].v;r(b==\'move\'||b==\'copy\'){9.q(\'1M\').1N=t}z{9.q(\'1M\').1N=K}}u autoAdjustIFrame(a){1e{r(a.Q.Y.Z.indexOf(\'http\')!=-1){s b=a.Q.9.body;s c=Math.max(b.offsetHeight,b.scrollHeight);c+=40;r(c>640){a.w.I="1P";a.w.I=c+"px"}z{r(a.Q.9.1h){r(a.Q.9.1h.1Q){c=a.Q.9.1h.1Q(b,"").getPropertyValue("I")}}z{r(b.1R["I"]){c=b.1R["I"]}}c=c.replace(/px$/,\'\');c=c*1+40;r(c<1S){c=1S}a.w.minHeight=c+"px";a.w.I="1P";a.w.I=c+"px"}y c}}1f(err){}}u open_window(a,b,c,d){r(!d){d=1T()}R.1U(a,d,\'scrollbars=1V,statusbar=no,resizable=1V,width=\'+b+\',I=\'+c);y t}u refresh_parent(){r(P&&P.1i){P.1i()}y t}u 1i(){9.Y.Z=9.Y.Z;y t}u 1W(a){r(P&&P.1W){P.9.Y.Z=a}z{R.1U(a,\'_0\',\'\')}}u check_full_mailbox(){r(9.q("1X")){s a=9.q("1X");s b=a.W[a.H].v;r(b==1){alert(full_mbox_warning)}}}u send_message(a){r(9.q(\'S\')){9.q(\'S\').w.A=\'O\';C(a,9.q("S"))}9.q(\'send_btn\').w.1Y=\'1Z\';9.q(\'send_btn2\').w.1Y=\'1Z\'}u 1T(){s a=new Date;y\'x\'+a.getTime()+\'x\'}',[],124,'|||||||||document|||||||||||||||||getElementById|if|var|false|function|value|style||return|else|display|checked|innerXHTML|innerHTML|parentNode|none|message_|selectedIndex|height|secs|true|index|className|clock_div|block|opener|contentWindow|window|notices|do_new_page_refresh|for|contacts_select|options|folder_cell_inner|location|href||delay|timerID||loading|highlight_row|display_notice|show_all|restore_checked_state|page_count|key|message_id|start_timer|js_update_functions|try|catch|save_folder_vis_state|defaultView|refresh_self|div|hm_confirm|enable_delete_warning|folder|open_folder|update_page|page_id|length|save_checked_state|mailboxes|contacts_visible|contacts|autosave_message|compose_subject|compose_to|compose_cc|compose_message|compose_from|compose_session|compose_in_reply_to|compose_references|compose_priority|compose_mdn|c_autosave|self|setTimeout|do_folder_dropdown|show_folders|prev_next_action|prev_next_folder|disabled||auto|getComputedStyle|currentStyle|300|window_name|open|yes|open_parent_window|full_mailbox|visibility|hidden'.split('|'),0,{})) Modified: trunk/hastymail2/js/site-min2.js =================================================================== --- trunk/hastymail2/js/site-min2.js 2010-04-05 18:01:00 UTC (rev 1412) +++ trunk/hastymail2/js/site-min2.js 2010-04-05 18:01:39 UTC (rev 1413) @@ -1 +1 @@ -var sajax_request_type="POST";var sajax_target_id="";var sajax_failure_redirect="";function sajax_init_object(){var A;var _3=new Array("Msxml2.XMLHTTP.5.0","Msxml2.XMLHTTP.4.0","Msxml2.XMLHTTP.3.0","Msxml2.XMLHTTP","Microsoft.XMLHTTP");for(var i=0;i<_3.length;i++){try{A=new ActiveXObject(_3[i]);}catch(e){A=null;}}if(!A&&typeof XMLHttpRequest!="undefined"){A=new XMLHttpRequest();}if(!A){}return A;}var sajax_requests=new Array();function sajax_cancel(){for(var i=0;i<sajax_requests.length;i++){sajax_requests[i].abort();}}function sajax_do_call(_6,_7){var i,x,n;var _9;var _a;var _b;_b=sajax_target_id;if(typeof (sajax_request_type)=="undefined"||sajax_request_type==""){sajax_request_type="GET";}_9="";if(sajax_request_type=="GET"){if(_9.indexOf("?")==-1){_9+="?rs="+escape(_6);}else{_9+="&rs="+escape(_6);}if (document.getElementById("sid")){_9+="&PHPSESSID="+document.getElementById("sid").value;}_9+="&rst="+escape(sajax_target_id);_9+="&rsrnd="+new Date().getTime();for(i=0;i<_7.length-1;i++){_9+="&rsargs[]="+escape(_7[i]);}_a=null;}else{if(sajax_request_type=="POST"){_a="rs="+escape(_6);_a+="&rst="+escape(sajax_target_id);_a+="&rsrnd="+new Date().getTime();for(i=0;i<_7.length-1;i++){_a=_a+"&rsargs[]="+escape(_7[i]);}}}x=sajax_init_object();if(x==null){if(sajax_failure_redirect!=""){location.href=sajax_failure_redirect;return false;}else{return false;}}else{x.open(sajax_request_type,'index.php',true);sajax_requests[sajax_requests.length]=x;if(sajax_request_type=="POST"){x.setRequestHeader("Method","POST "+_9+" HTTP/1.1");x.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");}x.onreadystatechange=function(){if(x.readyState!=4){return;};var _c;var _d;var _e=x.responseText.replace(/^\s*|\s*$/g,"");_c=_e.charAt(0);_d=_e.substring(2);if(_c==""){}else{if(_c=="-"){}else{if(_b!=""){document.getElementById(_b).innerHTML=eval(_d);}else{try{var _f;var _10=false;if(typeof _7[_7.length-1]=="object"){_f=_7[_7.length-1].callback;_10=_7[_7.length-1].extra_data;}else{_f=_7[_7.length-1];}_f(eval(_d),_10);}catch(e){}}}}};}x.send(_a);delete x;return true;}function x_ajax_update_page(){sajax_do_call("ajax_update_page",x_ajax_update_page.arguments);}function x_ajax_save_outgoing_message(){sajax_do_call("ajax_save_outgoing_message",x_ajax_save_outgoing_message.arguments);}function x_ajax_prev_contacts(){sajax_do_call("ajax_prev_contacts",x_ajax_prev_contacts.arguments);}function x_ajax_next_contacts(){sajax_do_call("ajax_next_contacts",x_ajax_next_contacts.arguments);}function x_ajax_save_folder_state(){sajax_do_call("ajax_save_folder_state",x_ajax_save_folder_state.arguments);}function x_ajax_save_folder_vis_state(){sajax_do_call("ajax_save_folder_vis_state",x_ajax_save_folder_vis_state.arguments);}/* split */eval(function(p,a,c,k,e,r){e=function(c){return(c<62?'':e(parseInt(c/62)))+((c=c%62)>35?String.fromCharCode(c+29):c.toString(36))};if('0'.replace(0,e)==0){while(c--)r[e(c)]=k[c];k=[function(e){return r[e]||e}];e=function(){return'([9q-wyzA-Z]|[12]\\w)'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('s 11=1000;s 12=null;s L=0;s B={};s 14=t;R.onbeforeunload=u(){14=J};u 15(a){r(disable_hl){y t}r(a.B){a.E.E.M=\'hl_row\'}z{a.E.E.M=\'normal_row\'}y t}u 16(a,b){r(9.q(\'N\')){C(\'<1j><b><i>\'+b+\'<\\/i><\\/b></1j>\',9.q("N"))}r(a){a.form.submit()}}u 1k(a){s b=0;r(9.q("1l")){b=9.q("1l").v}r(b==1){y confirm(a)}z{y J}}u expand_folder(a,b){r(!9.q(a)){r(9.q(b).D==\'-\'){9.q(b).D=\'+\';9.q(b).E.M=\'1m\'}z{9.q(b).D=\'-\';9.q(b).E.M=\'1n\'}y t}r(9.q(a).w.A==\'O\'){9.q(a).w.A=\'F\';9.q(b).D=\'+\';9.q(b).E.M=\'1m\'}z{9.q(a).w.A=\'O\';9.q(b).D=\'-\';9.q(b).E.M=\'1n\'}y t}u 1o(h,f){r(9.q("1p")){s g=9.q("1p").v}z{s g=t}r(9.q("show_pages")){s 17=J}z{s 17=t}16(t,update_notice);u j(a){s b=a.split(\'^^\'+g+\'^^\');r(b.1q==8){r(b[0]){C(b[0],9.q("new_page"));18()}r(b[1]){C(b[1],9.q("dd_inner"))}r(b[2]){C(b[2],9.q("N"))}r(b[3]){C(b[3],9.q("unread_total"))}r(b[4]){s c=9.createElement("textarea");c.D=b[4];s d=c.v;9.title=d}r(b[5]){C(b[5],9.q("folder_outer"))}r(b[6]){C(b[6],9.q("mbx_inner"));18()}r(b[7]){C(b[7],9.q("mailbox_title"))}}C(\'\',9.q(\'S\'))}x_ajax_update_page(t,h,g,f,T,do_folder_list,mailbox_page,sort_by,filter_by,17,j)}u toggle_all(a,b,c){s d=0;s h=0;s f=0;s g=\'G\';r(c){g=c}r(a&&b){d=b;h=a}z{r(9.q("19")){d=9.q("19").v;h=1}}r(h&&d){U(f=h;f<=d;f++){r(9.q(g+f)){r(9.q(g+f).B){9.q(g+f).B=t}z{9.q(g+f).B=\'B\'}1r(f)}}}}u 1r(a){s b=9.q("G"+a).v;s c=9.q("G"+a).B;r(c){B[b]=9.q("1s-"+b+"").v}z{B[b]=t}15(9.q("G"+a))}u 18(){s a=9.q("19").v;s b;s c;s d;s h=\'\';U(1a in B){h+=1a+\' \'+B[1a]}U(K=1;K<a;K++){r(9.q("G"+K)){b=9.q("G"+K).v;d=9.q("1s-"+b+"").v;r(B[b]==d){9.q("G"+K).B=J;15(9.q("G"+K))}}}}u show_prev_next(a){r(9.q(a)){r(9.q(a).w.A==\'F\'){9.q(a).w.A="O"}z{9.q(a).w.A="F"}}}u check_search_submit(a){r(a.keyCode==13||a.which==13){9.q("search_button").click();y t}z{y J}}u show_contacts(){r(9.q("V")){r(9.q("V").w.A==\'F\'){9.q("V").w.A=\'O\';9.q("1t").v=1}z{9.q("V").w.A=\'F\';9.q("1t").v=0}}}u add_address(a){r(9.q(a)){r(9.q("1u")){s b=9.q("1u");s c;s d=9.q(a).v;while(b.H!=-1){c=b.W[b.H].v;b.W[b.H].selected=t;r(d){d=d+\', \'}d=d+c}9.q(a).v=d;b.H=-1}}}u 1v(){s b=t;s c=t;s d=t;s h=t;s f=t;s g=t;s j=t;s k=t;s l=t;s m=t;s n=t;r(9.q("1w")){b=9.q("1w").v}r(9.q("1x")){d=9.q("1x").v}r(9.q("1y")){f=9.q("1y").v}r(9.q("1z")){c=9.q("1z").v}r(!d&&!f&&!c&&!b){y}r(9.q("1A")){h=9.q("1A").H}r(9.q("1B")){n=9.q("1B").v}r(9.q("1b")){g=9.q("1b").v}r(9.q("1C")){j=9.q("1C").v}r(9.q("1D")){k=9.q("1D").v}r(9.q("1E")){l=9.q("1E").H+1}r(9.q("1F")){m=9.q("1F").B}s o;r(9.q(\'N\')){o=9.q("N").D}u p(a){r(a){9.q("1b").v=a}9.q("N").D=o}16(t,\'Auto-saving message ...\');x_ajax_save_outgoing_message(t,b,c,d,f,h,g,j,k,l,m,n,p)}u C(a,b){r(b){b.D=a}y}u 1c(){L=L+1;r(1G&&L%1G==0){1v()}r(new_win){12=1H.1I("1c()",11);y}r((T&&L%T==0)||(L%update_delay==0&&1J&&!T)){1o(1J,page_title);r(1d){U(i=0;i<1d.1q;i++){1e{R[1d[i]]()}1f(e){}}}}r(14){1e{sajax_cancel()}1f(e){}y}12=1H.1I("1c()",11)}u get_contact_page(b){u c(a){C(a,9.q("compose_contacts"))}r(b){x_ajax_next_contacts(1,c)}z{x_ajax_prev_contacts(0,c)}}u 1g(a){x_ajax_save_folder_vis_state(t,a,t)}u hide_folder_list(){r(9.q("X")){r(9.q("X").w.A==\'F\'){9.q("X").w.A=\'O\';9.q("1K").w.A=\'F\';1g(0)}z{9.q("X").w.A=\'F\';9.q("1K").w.A=\'inline\';1g(1)}}}u save_folder_state(a){x_ajax_save_folder_state(t,a,t);y t}u check_prev_next_del(a){s b=9.q(\'1L\').v;r(b==\'delete\'){y 1k(a)}z{y J}}u disable_destination(){s a=9.q(\'1L\');s b=a.W[a.H].v;r(b==\'move\'||b==\'copy\'){9.q(\'1M\').1N=t}z{9.q(\'1M\').1N=J}}u autoAdjustIFrame(a){1e{r(a.Q.Y.Z.indexOf(\'http\')!=-1){s b=a.Q.9.body;s c=Math.max(b.offsetHeight,b.scrollHeight);c+=40;r(c>640){a.w.I="1P";a.w.I=c+"px"}z{r(a.Q.9.1h){r(a.Q.9.1h.1Q){c=a.Q.9.1h.1Q(b,"").getPropertyValue("I")}}z{r(b.1R["I"]){c=b.1R["I"]}}c=c.replace(/px$/,\'\');c=c*1+40;r(c<1S){c=1S}a.w.minHeight=c+"px";a.w.I="1P";a.w.I=c+"px"}y c}}1f(err){}}u open_window(a,b,c,d){r(!d){d=1T()}R.1U(a,d,\'scrollbars=1V,statusbar=no,resizable=1V,width=\'+b+\',I=\'+c);y t}u refresh_parent(){r(P&&P.1i){P.1i()}y t}u 1i(){9.Y.Z=9.Y.Z;y t}u 1W(a){r(P&&P.1W){P.9.Y.Z=a}z{R.1U(a,\'_0\',\'\')}}u check_full_mailbox(){r(9.q("1X")){s a=9.q("1X");s b=a.W[a.H].v;r(b==1){alert(full_mbox_warning)}}}u send_message(a){r(9.q(\'S\')){9.q(\'S\').w.A=\'O\';C(a,9.q("S"))}9.q(\'send_btn\').w.1Y=\'1Z\';9.q(\'send_btn2\').w.1Y=\'1Z\'}u 1T(){s a=new Date;y\'x\'+a.getTime()+\'x\'}',[],124,'|||||||||document|||||||||||||||||getElementById|if|var|false|function|value|style||return|else|display|checked|innerXHTML|innerHTML|parentNode|none|message_|selectedIndex|height|true|index|secs|className|clock_div|block|opener|contentWindow|window|notices|do_new_page_refresh|for|contacts_select|options|folder_cell_inner|location|href||delay|timerID||loading|highlight_row|display_notice|show_all|restore_checked_state|page_count|key|message_id|start_timer|js_update_functions|try|catch|save_folder_vis_state|defaultView|refresh_self|div|hm_confirm|enable_delete_warning|folder|open_folder|update_page|page_id|length|save_checked_state|mailboxes|contacts_visible|contacts|autosave_message|compose_subject|compose_to|compose_cc|compose_message|compose_from|compose_session|compose_in_reply_to|compose_references|compose_priority|compose_mdn|c_autosave|self|setTimeout|do_folder_dropdown|show_folders|prev_next_action|prev_next_folder|disabled||auto|getComputedStyle|currentStyle|300|window_name|open|yes|open_parent_window|full_mailbox|visibility|hidden'.split('|'),0,{})) +var sajax_request_type="POST";var sajax_target_id="";var sajax_failure_redirect="";function sajax_init_object(){var A;var _3=new Array("Msxml2.XMLHTTP.5.0","Msxml2.XMLHTTP.4.0","Msxml2.XMLHTTP.3.0","Msxml2.XMLHTTP","Microsoft.XMLHTTP");for(var i=0;i<_3.length;i++){try{A=new ActiveXObject(_3[i]);}catch(e){A=null;}}if(!A&&typeof XMLHttpRequest!="undefined"){A=new XMLHttpRequest();}if(!A){}return A;}var sajax_requests=new Array();function sajax_cancel(){for(var i=0;i<sajax_requests.length;i++){sajax_requests[i].abort();}}function sajax_do_call(_6,_7){var i,x,n;var _9;var _a;var _b;_b=sajax_target_id;if(typeof (sajax_request_type)=="undefined"||sajax_request_type==""){sajax_request_type="GET";}_9="";if(sajax_request_type=="GET"){if(_9.indexOf("?")==-1){_9+="?rs="+escape(_6);}else{_9+="&rs="+escape(_6);}if (document.getElementById("sid")){_9+="&PHPSESSID="+document.getElementById("sid").value;}_9+="&rst="+escape(sajax_target_id);_9+="&rsrnd="+new Date().getTime();for(i=0;i<_7.length-1;i++){_9+="&rsargs[]="+escape(_7[i]);}_a=null;}else{if(sajax_request_type=="POST"){_a="rs="+escape(_6);_a+="&rst="+escape(sajax_target_id);_a+="&rsrnd="+new Date().getTime();for(i=0;i<_7.length-1;i++){_a=_a+"&rsargs[]="+escape(_7[i]);}}}x=sajax_init_object();if(x==null){if(sajax_failure_redirect!=""){location.href=sajax_failure_redirect;return false;}else{return false;}}else{x.open(sajax_request_type,'index.php',true);sajax_requests[sajax_requests.length]=x;if(sajax_request_type=="POST"){x.setRequestHeader("Method","POST "+_9+" HTTP/1.1");x.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");}x.onreadystatechange=function(){if(x.readyState!=4){return;};var _c;var _d;var _e=x.responseText.replace(/^\s*|\s*$/g,"");_c=_e.charAt(0);_d=_e.substring(2);if(_c==""){}else{if(_c=="-"){}else{if(_b!=""){document.getElementById(_b).innerHTML=eval(_d);}else{try{var _f;var _10=false;if(typeof _7[_7.length-1]=="object"){_f=_7[_7.length-1].callback;_10=_7[_7.length-1].extra_data;}else{_f=_7[_7.length-1];}_f(eval(_d),_10);}catch(e){}}}}};}x.send(_a);delete x;return true;}function x_ajax_update_page(){sajax_do_call("ajax_update_page",x_ajax_update_page.arguments);}function x_ajax_save_outgoing_message(){sajax_do_call("ajax_save_outgoing_message",x_ajax_save_outgoing_message.arguments);}function x_ajax_prev_contacts(){sajax_do_call("ajax_prev_contacts",x_ajax_prev_contacts.arguments);}function x_ajax_next_contacts(){sajax_do_call("ajax_next_contacts",x_ajax_next_contacts.arguments);}function x_ajax_save_folder_state(){sajax_do_call("ajax_save_folder_state",x_ajax_save_folder_state.arguments);}function x_ajax_save_folder_vis_state(){sajax_do_call("ajax_save_folder_vis_state",x_ajax_save_folder_vis_state.arguments);}/* split */eval(function(p,a,c,k,e,r){e=function(c){return(c<62?'':e(parseInt(c/62)))+((c=c%62)>35?String.fromCharCode(c+29):c.toString(36))};if('0'.replace(0,e)==0){while(c--)r[e(c)]=k[c];k=[function(e){return r[e]||e}];e=function(){return'([9q-wyzA-Z]|[12]\\w)'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('s 11=1000;s 12=null;s J=0;s B={};s 14=t;R.onbeforeunload=u(){14=K};u 15(a){r(disable_hl){y t}r(a.B){a.E.E.M=\'hl_row\'}z{a.E.E.M=\'normal_row\'}y t}u 16(a,b){r(9.q(\'N\')){C(\'<1j><b><i>\'+b+\'<\\/i><\\/b></1j>\',9.q("N"))}r(a){a.form.submit()}}u 1k(a){s b=0;r(9.q("1l")){b=9.q("1l").v}r(b==1){y confirm(a)}z{y K}}u expand_folder(a,b){r(!9.q(a)){r(9.q(b).D==\'-\'){9.q(b).D=\'+\';9.q(b).E.M=\'1m\'}z{9.q(b).D=\'-\';9.q(b).E.M=\'1n\'}y t}r(9.q(a).w.A==\'O\'){9.q(a).w.A=\'F\';9.q(b).D=\'+\';9.q(b).E.M=\'1m\'}z{9.q(a).w.A=\'O\';9.q(b).D=\'-\';9.q(b).E.M=\'1n\'}y t}u 1o(h,f){r(9.q("1p")){s g=9.q("1p").v}z{s g=t}r(9.q("show_pages")){s 17=K}z{s 17=t}16(t,update_notice);u j(a){s b=a.split(\'^^\'+g+\'^^\');r(b.1q==8){r(b[0]){C(b[0],9.q("new_page"));18()}r(b[1]){C(b[1],9.q("dd_inner"))}r(b[2]){C(b[2],9.q("N"))}r(b[3]){C(b[3],9.q("unread_total"))}r(b[4]){s c=9.createElement("textarea");c.D=b[4];s d=c.v;9.title=d}r(b[5]){C(b[5],9.q("folder_outer"))}r(b[6]){C(b[6],9.q("mbx_inner"));18()}r(b[7]){C(b[7],9.q("mailbox_title"))}}C(\'\',9.q(\'S\'))}x_ajax_update_page(t,h,g,f,T,do_folder_list,mailbox_page,sort_by,filter_by,17,j)}u toggle_all(a,b,c){s d=0;s h=0;s f=0;s g=\'G\';r(c){g=c}r(a&&b){d=b;h=a}z{r(9.q("19")){d=9.q("19").v;h=1}}r(h&&d){U(f=h;f<=d;f++){r(9.q(g+f)){r(9.q(g+f).B){9.q(g+f).B=t}z{9.q(g+f).B=\'B\'}1r(f)}}}}u 1r(a){s b=9.q("G"+a).v;s c=9.q("G"+a).B;r(c){B[b]=9.q("1s-"+b+"").v}z{B[b]=t}15(9.q("G"+a))}u 18(){s a=9.q("19").v;s b;s c;s d;s h=\'\';U(1a in B){h+=1a+\' \'+B[1a]}U(L=1;L<a;L++){r(9.q("G"+L)){b=9.q("G"+L).v;d=9.q("1s-"+b+"").v;r(B[b]==d){9.q("G"+L).B=K;15(9.q("G"+L))}}}}u show_prev_next(a){r(9.q(a)){r(9.q(a).w.A==\'F\'){9.q(a).w.A="O"}z{9.q(a).w.A="F"}}}u check_search_submit(a){r(a.keyCode==13||a.which==13){9.q("search_button").click();y t}z{y K}}u show_contacts(){r(9.q("V")){r(9.q("V").w.A==\'F\'){9.q("V").w.A=\'O\';9.q("1t").v=1}z{9.q("V").w.A=\'F\';9.q("1t").v=0}}}u add_address(a){r(9.q(a)){r(9.q("1u")){s b=9.q("1u");s c;s d=9.q(a).v;while(b.H!=-1){c=b.W[b.H].v;b.W[b.H].selected=t;r(d){d=d+\', \'}d=d+c}9.q(a).v=d;b.H=-1}}}u 1v(){s b=t;s c=t;s d=t;s h=t;s f=t;s g=t;s j=t;s k=t;s l=t;s m=t;s n=t;r(9.q("1w")){b=9.q("1w").v}r(9.q("1x")){d=9.q("1x").v}r(9.q("1y")){f=9.q("1y").v}r(9.q("1z")){c=9.q("1z").v}r(!d&&!f&&!c&&!b){y}r(9.q("1A")){h=9.q("1A").H}r(9.q("1B")){n=9.q("1B").v}r(9.q("1b")){g=9.q("1b").v}r(9.q("1C")){j=9.q("1C").v}r(9.q("1D")){k=9.q("1D").v}r(9.q("1E")){l=9.q("1E").H+1}r(9.q("1F")){m=9.q("1F").B}s o;r(9.q(\'N\')){o=9.q("N").D}u p(a){r(a){9.q("1b").v=a}9.q("N").D=o}16(t,\'Auto-saving message ...\');x_ajax_save_outgoing_message(t,b,c,d,f,h,g,j,k,l,m,n,p)}u C(a,b){r(b){b.D=a}y}u 1c(){J=J+1;r(1G&&J%1G==0){1v()}r(new_win){12=1H.1I("1c()",11);y}r((T&&J%T==0)||(J%update_delay==0&&1J&&!T)){1o(1J,page_title);r(1d){U(i=0;i<1d.1q;i++){1e{R[1d[i]]()}1f(e){}}}}r(14){1e{sajax_cancel()}1f(e){}y}12=1H.1I("1c()",11)}u reset_timer(){J=0}u get_contact_page(b){u c(a){C(a,9.q("compose_contacts"))}r(b){x_ajax_next_contacts(1,c)}z{x_ajax_prev_contacts(0,c)}}u 1g(a){x_ajax_save_folder_vis_state(t,a,t)}u hide_folder_list(){r(9.q("X")){r(9.q("X").w.A==\'F\'){9.q("X").w.A=\'O\';9.q("1K").w.A=\'F\';1g(0)}z{9.q("X").w.A=\'F\';9.q("1K").w.A=\'inline\';1g(1)}}}u save_folder_state(a){x_ajax_save_folder_state(t,a,t);y t}u check_prev_next_del(a){s b=9.q(\'1L\').v;r(b==\'delete\'){y 1k(a)}z{y K}}u disable_destination(){s a=9.q(\'1L\');s b=a.W[a.H].v;r(b==\'move\'||b==\'copy\'){9.q(\'1M\').1N=t}z{9.q(\'1M\').1N=K}}u autoAdjustIFrame(a){1e{r(a.Q.Y.Z.indexOf(\'http\')!=-1){s b=a.Q.9.body;s c=Math.max(b.offsetHeight,b.scrollHeight);c+=40;r(c>640){a.w.I="1P";a.w.I=c+"px"}z{r(a.Q.9.1h){r(a.Q.9.1h.1Q){c=a.Q.9.1h.1Q(b,"").getPropertyValue("I")}}z{r(b.1R["I"]){c=b.1R["I"]}}c=c.replace(/px$/,\'\');c=c*1+40;r(c<1S){c=1S}a.w.minHeight=c+"px";a.w.I="1P";a.w.I=c+"px"}y c}}1f(err){}}u open_window(a,b,c,d){r(!d){d=1T()}R.1U(a,d,\'scrollbars=1V,statusbar=no,resizable=1V,width=\'+b+\',I=\'+c);y t}u refresh_parent(){r(P&&P.1i){P.1i()}y t}u 1i(){9.Y.Z=9.Y.Z;y t}u 1W(a){r(P&&P.1W){P.9.Y.Z=a}z{R.1U(a,\'_0\',\'\')}}u check_full_mailbox(){r(9.q("1X")){s a=9.q("1X");s b=a.W[a.H].v;r(b==1){alert(full_mbox_warning)}}}u send_message(a){r(9.q(\'S\')){9.q(\'S\').w.A=\'O\';C(a,9.q("S"))}9.q(\'send_btn\').w.1Y=\'1Z\';9.q(\'send_btn2\').w.1Y=\'1Z\'}u 1T(){s a=new Date;y\'x\'+a.getTime()+\'x\'}',[],124,'|||||||||document|||||||||||||||||getElementById|if|var|false|function|value|style||return|else|display|checked|innerXHTML|innerHTML|parentNode|none|message_|selectedIndex|height|secs|true|index|className|clock_div|block|opener|contentWindow|window|notices|do_new_page_refresh|for|contacts_select|options|folder_cell_inner|location|href||delay|timerID||loading|highlight_row|display_notice|show_all|restore_checked_state|page_count|key|message_id|start_timer|js_update_functions|try|catch|save_folder_vis_state|defaultView|refresh_self|div|hm_confirm|enable_delete_warning|folder|open_folder|update_page|page_id|length|save_checked_state|mailboxes|contacts_visible|contacts|autosave_message|compose_subject|compose_to|compose_cc|compose_message|compose_from|compose_session|compose_in_reply_to|compose_references|compose_priority|compose_mdn|c_autosave|self|setTimeout|do_folder_dropdown|show_folders|prev_next_action|prev_next_folder|disabled||auto|getComputedStyle|currentStyle|300|window_name|open|yes|open_parent_window|full_mailbox|visibility|hidden'.split('|'),0,{})) Modified: trunk/hastymail2/js/site.js =================================================================== --- trunk/hastymail2/js/site.js 2010-04-05 18:01:00 UTC (rev 1412) +++ trunk/hastymail2/js/site.js 2010-04-05 18:01:39 UTC (rev 1413) @@ -325,6 +325,9 @@ } timerID = self.setTimeout("start_timer()", delay) } +function reset_timer() { + secs = 0; +} function get_contact_page(page) { function contact_page_callback(php_output) { innerXHTML(php_output, document.getElementById("compose_contacts")); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |