~ubuntu-branches/ubuntu/jaunty/transmission/jaunty-updates

« back to all changes in this revision

Viewing changes to web/javascript/transmission.js

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson
  • Date: 2008-11-28 15:33:48 UTC
  • mfrom: (1.1.19 upstream)
  • Revision ID: james.westby@ubuntu.com-20081128153348-it70trfnxiroblmc
Tags: 1.40-0ubuntu1
* New upstream release (LP: #302672)
  - Tracker communication uses fewer resources
  - More accurate bandwidth limits
  - Reduce disk fragmentation by preallocating files (LP: #287726)
  - Stability, security and performance improvements to the RPC /
    Web UI server (closes LP: #290423)
  - Support compression when serving Web UI and RPC responses
  - Simplify the RPC whitelist
  - Fix bug that prevented handshakes with encrypted BitComet peers
  - Fix 1.3x bug that could re-download some data unnecessarily
    (LP: #295040)
  - Option to automatically update the blocklist weekly
  - Added off-hour bandwidth scheduling
  - Simplify file/priority selection in the details dialog
  - Fix a couple of crashes
  - New / updated translations
  - Don't inhibit hibernation by default (LP: #292929)
  - Use "close" animation when sending to notification area (LP: #130811)
  - Fix resize problems (LP: #269872)
  - Support "--version" option when launching from command line
    (LP: #292011)
  - Correctly parse announce URLs that have leading or trailing
    spaces (LP: #262411)
  - Display an error when "Open Torrent" fails (LP: #281463)
* Dropped 10_fix_crasher_from_upstream.dpatch: Fix is in this
  upstream release.
* debian/control: Don't just build-depend on libcurl-dev, which is
  a virtual package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
171
171
                });
172
172
                if (!$.browser.safari)
173
173
                {
174
 
                        $(this).addClass('blur');
 
174
                        search_box.addClass('blur');
175
175
                        search_box[0].value = 'Filter';
176
176
                        search_box.bind('blur', {transmission: this}, function(event) {
177
177
                                if (this.value == '') {
669
669
                // remember them for later
670
670
                this._prefs = prefs;
671
671
 
672
 
                var down_limit    = prefs[RPC._DownSpeedLimit] / 1024;
 
672
                var down_limit    = prefs[RPC._DownSpeedLimit];
673
673
                var down_limited  = prefs[RPC._DownSpeedLimited];
674
 
                var up_limit      = prefs[RPC._UpSpeedLimit] / 1024;
 
674
                var up_limit      = prefs[RPC._UpSpeedLimit];
675
675
                var up_limited    = prefs[RPC._UpSpeedLimited];
676
676
                
677
677
                $('div.download_location input')[0].value = prefs['download-dir'];
843
843
                var total_upload_speed = 0;
844
844
                var total_verified = 0;
845
845
                var na = 'N/A';
 
846
                
 
847
                $("#torrent_inspector_size, .inspector_row div").css('color', '#222');
846
848
 
847
849
                if( torrents.length == 0 )
848
850
                {
868
870
                        setInnerHTML( $(ti+'progress')[0], na );
869
871
                        setInnerHTML( $(ti+'comment')[0], na );
870
872
                        setInnerHTML( $(ti+'creator')[0], na );
871
 
                        setInnerHTML( $(ti+'error')[0], na );
 
873
                        setInnerHTML( $(ti+'error')[0], na );           
 
874
                        $("#torrent_inspector_size, .inspector_row > div:contains('N/A')").css('color', '#666');
872
875
                        return;
873
876
                }
874
877
 
919
922
                        if( total_tracker == null )
920
923
                                total_tracker = tracker;
921
924
                        else if ( total_tracker.search ( tracker ) == -1 )  
922
 
                                total_tracker += '/' + tracker;
 
925
                                total_tracker += ', ' + tracker;
923
926
                        if( t._is_private )
924
927
                                have_private = true;
925
928
                        else
929
932
                var private_string = '';
930
933
                if( have_private && have_public ) private_string = 'Mixed';
931
934
                else if( have_private ) private_string = 'Private Torrent';
932
 
                else if( have_public ) private_string = 'Public Torrent';
 
935
                else if( have_public ) private_string = 'Public Torrent';       
933
936
 
934
937
                var ti = '#torrent_inspector_';
935
938
                $(ti+'name')[0].innerHTML            = name;
954
957
                $(ti+'comment')[0].innerHTML         = comment;
955
958
                $(ti+'creator')[0].innerHTML         = creator;
956
959
                $(ti+'error')[0].innerHTML           = error;
 
960
                
 
961
                $(".inspector_row > div:contains('N/A')").css('color', '#666');
957
962
        },
958
963
    
959
964
        /*