Changeset 8788


Ignore:
Timestamp:
Jul 7, 2009, 1:11:30 AM (13 years ago)
Author:
kjg
Message:

(trunk web) enable open dialog on iPhone

Location:
trunk/web
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/javascript/common.js

    r8732 r8788  
    7171                $('div.dialog_container div.dialog_window a').css('padding', '2px 10px 3px');
    7272        }
    73     if (iPhone){
    74                         window.onload = function(){ setTimeout(function() { window.scrollTo(0,1); },500); };
    75                         window.onorientationchange = function(){ setTimeout( function() { window.scrollTo(0,1); },100); };
    76         if(window.navigator.standalone)
    77             // Fix min height for iPhone when run in full screen mode from home screen
    78             // so the footer appears in the right place
    79             $('body div#torrent_container').css('min-height', '338px');
    80     }
     73        if (iPhone){
     74                window.onload = function(){ setTimeout(function() { window.scrollTo(0,1); },500); };
     75                window.onorientationchange = function(){ setTimeout( function() { window.scrollTo(0,1); },100); };
     76                if(window.navigator.standalone)
     77                        // Fix min height for iPhone when run in full screen mode from home screen
     78                        // so the footer appears in the right place
     79                        $('body div#torrent_container').css('min-height', '338px');
     80                $("label[for=torrent_upload_url]").text("URL: ");
     81        }
    8182});
    8283
  • trunk/web/javascript/transmission.js

    r8787 r8788  
    5050                $('.file_wanted_control').live('click', function(e){ tr.fileWantedClicked(e, this); });
    5151                $('.file_priority_control').live('click', function(e){ tr.filePriorityClicked(e, this); });
     52                $('#open_link').bind('click', function(e){ tr.openTorrentClicked(e); });
     53                $('#upload_confirm_button').bind('click', function(e){ tr.confirmUploadClicked(e); return false;});
     54                $('#upload_cancel_button').bind('click', function(e){ tr.cancelUploadClicked(e); return false; });
    5255                if (iPhone) {
    5356                        $('#inspector_close').bind('click', function(e){ tr.hideInspector(); });
     
    5659                        $(document).bind('keydown',  function(e){ tr.keyDown(e); });
    5760                        $('#torrent_container').bind('click', function(e){ tr.deselectAll( true ); });
    58                         $('#open_link').bind('click', function(e){ tr.openTorrentClicked(e); });
    5961                        $('#filter_toggle_link').bind('click', function(e){ tr.toggleFilterClicked(e); });
    6062                        $('#inspector_link').bind('click', function(e){ tr.toggleInspectorClicked(e); });
    61                         $('#upload_confirm_button').bind('click', function(e){ tr.confirmUploadClicked(e); return false;});
    62                         $('#upload_cancel_button').bind('click', function(e){ tr.cancelUploadClicked(e); return false; });
    6363               
    6464                        this.setupSearchBox();
  • trunk/web/stylesheets/iphone.css

    r8787 r8788  
    4343}
    4444
    45 body.inspector_showing #torrent_filter_bar, body.inspector_showing #torrent_container, body.dialog_showing #torrent_filter_bar, body.dialog_showing #torrent_container, body.dialog_showing #torrent_inspector, body.dialog_showing #prefs_container, body.prefs_showing #torrent_inspector, body.prefs_showing #torrent_filter_bar, body.prefs_showing #torrent_container {
     45body.inspector_showing #torrent_filter_bar, body.inspector_showing #torrent_container,
     46body.dialog_showing #torrent_filter_bar, body.dialog_showing #torrent_container, body.dialog_showing #torrent_inspector, body.dialog_showing #prefs_container,
     47body.prefs_showing #torrent_inspector, body.prefs_showing #torrent_filter_bar, body.prefs_showing #torrent_container,
     48body.open_showing #torrent_filter_bar, body.open_showing #torrent_container {
    4649        display: none !important;
    4750}
     
    8285}
    8386
    84 li#remove {
     87li#remove, li#open {
    8588        float: left;
    8689}
     
    105108div.torrent_global_menu ul li.disabled {
    106109        opacity: 0.25;
    107 }
    108 
    109 div.torrent_global_menu ul li#open {
    110         display: none;
    111110}
    112111
     
    179178}
    180179
    181 div.torrent_global_details div#torrent_global_upload, 
     180div.torrent_global_details div#torrent_global_upload,
    182181div.torrent_global_details div#torrent_global_download {
    183182        float: right;
     
    395394}
    396395
     396#torrent_upload_file, label[for="torrent_upload_file"]{
     397  display:none;
     398}
     399
    397400h2.dialog_heading {
    398401        text-align: center;
     
    408411        text-decoration: none;
    409412        border: 2px solid white;
    410         margin: 0 0 0;
     413        margin: 5px 5px 0;
    411414        font-weight: bold;
    412415        -webkit-border-radius: 16px;
    413         display: block;
     416        display: inline-block;
    414417        width: 90px;
    415         position: absolute;
    416418        font-size: 12px;
    417419        text-align: center;
Note: See TracChangeset for help on using the changeset viewer.