Changeset 39145

Show
Ignore:
Timestamp:
07/18/12 20:42:59 (10 months ago)
Author:
NeoCat
Message:

hide popup after init in order to avoid Android browser's scroll bug

Location:
websites/twicli
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • websites/twicli/styles/default.css

    r39140 r39145  
    5858#rep > a > img { padding: 2px 1px 1px 3px; } 
    5959#reps { margin-top: 1px; } 
    60 .popup_menu { display: none; background-color: #eee; position: absolute; left: 0; top: 200px; border: 2px solid #666; z-index: 6; width: 180px; font-size: smaller; } 
     60.popup_menu { background-color: #eee; position: absolute; left: 0; top: 200px; border: 2px solid #666; z-index: 6; width: 180px; font-size: smaller; } 
    6161.popup_menu a { display: block; background-color: #fff; color: black; text-decoration: none; padding: 3px; border-bottom: 1px solid #888; font-size: smaller; } 
    6262.popup_menu a:hover { background-color: #33f; color: #fff; text-decoration: none; } 
    6363.popup_menu a.row2 { background-color: #eee; } 
    64 #popup_hide { display: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.2; filter: alpha(opacity=20); background-color: black; z-index: 5; } 
     64#popup_hide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.2; filter: alpha(opacity=20); background-color: black; z-index: 5; } 
    6565#user_info { margin: 1px; border: 1px solid #888; } 
    6666#user_info td { font-size: smaller; } 
  • websites/twicli/twicli.js

    r39144 r39145  
    690690// ポップアップメニューの初期化 
    691691function popup_init() { 
     692        popup_hide(true); 
    692693        var popup_id_list = ['popup_link_user', 'popup_link_status', 'popup_status_delete', 
    693694                                                'popup_status_retweet', 'popup_status_quote', 
     
    716717} 
    717718// ポップアップメニューを非表示 
    718 function popup_hide() { 
    719         callPlugins("popup_hide"); 
     719function popup_hide(init) { 
     720        if (!init) callPlugins("popup_hide"); 
    720721        $('popup').style.display = 'none'; 
    721722        $('userinfo_popup').style.display = 'none';