Changeset 8428


Ignore:
Timestamp:
May 19, 2009, 1:19:55 PM (12 years ago)
Author:
kjg
Message:

(trunk web) allow the tracker and comment info fields to linebreak on a / fixes #1188

File:
1 edited

Legend:

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

    r8418 r8428  
    988988                setInnerHTML( $(ti+'name')[0], name );
    989989                setInnerHTML( $(ti+'size')[0], torrents.length ? Math.formatBytes( total_size ) : 'N/A' );
    990                 setInnerHTML( $(ti+'tracker')[0], total_tracker );
     990                setInnerHTML( $(ti+'tracker')[0], total_tracker.replace(/\//g, '/​') );
    991991                setInnerHTML( $(ti+'hash')[0], hash );
    992992                setInnerHTML( $(ti+'state')[0], total_state );
     
    10051005                setInnerHTML( $(ti+'creator_date')[0], date_created );
    10061006                setInnerHTML( $(ti+'progress')[0], torrents.length ? Math.ratio( sizeDone*100, sizeWhenDone ) + '%' : 'N/A' );
    1007                 setInnerHTML( $(ti+'comment')[0], comment );
     1007                setInnerHTML( $(ti+'comment')[0], comment.replace(/\//g, '/​') );
    10081008                setInnerHTML( $(ti+'creator')[0], creator );
    10091009                setInnerHTML( $(ti+'error')[0], error );
Note: See TracChangeset for help on using the changeset viewer.