Changeset 39109

Show
Ignore:
Timestamp:
02/08/12 22:32:31 (16 months ago)
Author:
NeoCat
Message:

Notify about tweet failure if logging in to Twitter Web.

Location:
websites/twicli
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • websites/twicli/lang.js

    r38950 r39109  
    5858        'An external plugin is specified. This plugin can fully access to your account.\nAre you sure to load this?': ['外部プラグインが指定されています。このプラグインはあなたのアカウントに自由にアクセス可能になります。本当にロードしてもよろしいですか?','你欲加载外部地址上的插件。这个插件将自由访问你的帐号信息。确认加载?'], 
    5959        'Cannot access to direct messages. Please re-auth twicli for DM access.': ['ダイレクトメッセージにアクセスできません。お手数ですが再度認証を行ってください。'], 
     60        'Cannot tweet from twicli? Please try logging out of Twitter web site...': ['もしツイートがうまくできない場合、TwitterのWebサイトからログアウトすると成功することがあります。'], 
    6061        'An old HTML file is loaded. Please reload it. If the problem is not fixed, please try erasing caches.': ['古いHTMLファイルがロードされています。リロードしてみて下さい。それでも解決しない場合はキャッシュを削除してみて下さい。'] 
    6162}; 
  • websites/twicli/twicli.js

    r39107 r39109  
    137137        pfr.style.display = "none"; 
    138138        var errTimer = false; 
    139         // 5秒(エラー処理指定時はデフォルト2秒→10秒)で正常終了しなければエラーとみなす 
     139        // 5秒(エラー処理指定時はデフォルト3秒→10秒)で正常終了しなければエラーとみなす 
    140140        errTimer = setTimeout(function(){ 
    141141                loading(false); 
     
    370370var err_timeout = null; 
    371371var update_post_check = false; 
     372var tweet_failed_notified = false; 
    372373var tw_config; 
    373374var t_co_maxstr = "http://t.co/*******"; 
     
    10891090                        } else 
    10901091                                update_post_check = false; 
    1091                 } else 
     1092                } else { 
     1093                        // fault again... 
    10921094                        update_post_check = false; 
     1095                        if (!tweet_failed_notified) 
     1096                                error(_('Cannot tweet from twicli? Please try logging out of Twitter web site...')); 
     1097                        tweet_failed_notified = true; 
     1098                } 
    10931099        } 
    10941100}