Changeset 39079
- Timestamp:
- 11/30/11 02:11:21 (18 months ago)
- Files:
-
- 1 modified
-
websites/twicli/twicli.js (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
websites/twicli/twicli.js
r39076 r39079 126 126 } 127 127 var postSeq = 0; 128 var postTimeout = 2000; 128 129 function postInIFrame(url, done, err, retry) { 129 130 loading(true); … … 136 137 pfr.style.display = "none"; 137 138 var errTimer = false; 138 // 5秒(エラー処理指定時は 3秒→10秒)で正常終了しなければエラーとみなす139 // 5秒(エラー処理指定時はデフォルト2秒→10秒)で正常終了しなければエラーとみなす 139 140 errTimer = setTimeout(function(){ 140 141 loading(false); … … 145 146 postNext(); 146 147 }, 0); 147 }, retry?10000:err? 3000:5000);148 }, retry?10000:err?postTimeout:5000); 148 149 var cnt = 0; 149 150 var onload = pfr.onload = function(){ … … 507 508 return false; 508 509 } 509 var retry = false;510 var retry = 0; 510 511 if (st.value == "r" && last_post) { 511 retry = true;512 retry = 1; 512 513 st.value = last_post; 513 514 in_reply_to_user = last_in_reply_to_user; … … 527 528 "&long=" + geo.coords.longitude : "") + 528 529 (in_reply_to_status_id ? "&in_reply_to_status_id=" + in_reply_to_status_id : ""), 529 function(){ resetFrm(); if (auto_update) update()},530 function(){ resetFrm(); if (auto_update) { update_post_check = [2,text]; setTimeout(update, postTimeout); }}, 530 531 function(){ if (auto_update) { update_post_check = [retry,text]; update() }}, retry); 531 532 in_reply_to_user = in_reply_to_status_id = null; … … 1061 1062 if (update_post_check && tw[j].user.screen_name == myname && removeLink(tw[j].text) == removeLink(update_post_check[1])) { 1062 1063 if ($('fst').value == update_post_check[1]) resetFrm(); 1064 if (update_post_check[0] != 1) postTimeout = Math.max(1000, postTimeout-50); 1063 1065 update_post_check = false; 1064 1066 } … … 1078 1080 if (update_post_check) { 1079 1081 var st = document.frm.status; 1080 if (!update_post_check[0] && st.value == update_post_check[1] && st.value == last_post) { 1081 st.value = 'r'; 1082 press(1); 1082 if (update_post_check[0] != 1) { 1083 postTimeout = Math.min(10000, postTimeout+500); 1084 if (update_post_check[0] == 0 && st.value == update_post_check[1] && st.value == last_post) { 1085 st.value = 'r'; 1086 press(1); 1087 } else 1088 update_post_check = false; 1083 1089 } else 1084 update_post_check = false;1090 update_post_check = false; 1085 1091 } 1086 1092 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)