1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-23 16:24:02 +00:00

(trunk web) don't listen for drag-and-drop events in mobile mode

This commit is contained in:
Jordan Lee 2012-01-24 21:01:06 +00:00
parent 8277b5e0e8
commit 631f63435c

View file

@ -55,9 +55,6 @@ Transmission.prototype =
$('#upload_cancel_button').click($.proxy(this.hideUploadDialog,this)); $('#upload_cancel_button').click($.proxy(this.hideUploadDialog,this));
$('#turtle-button').click($.proxy(this.toggleTurtleClicked,this)); $('#turtle-button').click($.proxy(this.toggleTurtleClicked,this));
$('#compact-button').click($.proxy(this.toggleCompactClicked,this)); $('#compact-button').click($.proxy(this.toggleCompactClicked,this));
$('#torrent_container').bind('dragover', $.proxy(this.dragenter,this));
$('#torrent_container').bind('dragenter', $.proxy(this.dragenter,this));
$('#torrent_container').bind('drop', $.proxy(this.drop,this));
// tell jQuery to copy the dataTransfer property from events over if it exists // tell jQuery to copy the dataTransfer property from events over if it exists
jQuery.event.props.push("dataTransfer"); jQuery.event.props.push("dataTransfer");
@ -75,6 +72,9 @@ Transmission.prototype =
$(document).bind('keydown', $.proxy(this.keyDown,this) ); $(document).bind('keydown', $.proxy(this.keyDown,this) );
$(document).bind('keyup', $.proxy(this.keyUp, this) ); $(document).bind('keyup', $.proxy(this.keyUp, this) );
$('#torrent_container').click( $.proxy(this.deselectAll,this) ); $('#torrent_container').click( $.proxy(this.deselectAll,this) );
$('#torrent_container').bind('dragover', $.proxy(this.dragenter,this));
$('#torrent_container').bind('dragenter', $.proxy(this.dragenter,this));
$('#torrent_container').bind('drop', $.proxy(this.drop,this));
$('#inspector_link').click( $.proxy(this.toggleInspector,this) ); $('#inspector_link').click( $.proxy(this.toggleInspector,this) );
this.setupSearchBox(); this.setupSearchBox();