Changeset 12691


Ignore:
Timestamp:
Aug 16, 2011, 7:47:44 PM (10 years ago)
Author:
jordan
Message:

Use 'ev' rather than 'event' in Transmission.onRowClicked(). Thanks to mjpieters for reporting this.

File:
1 edited

Legend:

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

    r12690 r12691  
    18391839                // Prevents click carrying to parent element
    18401840                // which deselects all on click
    1841                 event.stopPropagation();
     1841                ev.stopPropagation();
    18421842                // but still hide the context menu if it is showing
    18431843                $('#jqContextMenu').hide();
     
    18451845                // 'Apple' button emulation on PC :
    18461846                // Need settable meta-key and ctrl-key variables for mac emulation
    1847                 var meta_key = event.metaKey;
    1848                 var ctrl_key = event.ctrlKey;
    1849                 if (event.ctrlKey && navigator.appVersion.toLowerCase().indexOf("mac") == -1) {
     1847                var meta_key = ev.metaKey;
     1848                var ctrl_key = ev.ctrlKey;
     1849                if (ev.ctrlKey && navigator.appVersion.toLowerCase().indexOf("mac") == -1) {
    18501850                        meta_key = true;
    18511851                        ctrl_key = false;
     
    18581858                        this.setSelectedRow( row, true );
    18591859
    1860                 } else if (event.shiftKey) {
     1860                } else if (ev.shiftKey) {
    18611861                        this.selectRange( row, true );
    18621862                        // Need to deselect any selected text
Note: See TracChangeset for help on using the changeset viewer.