From 631f63435ce926b67c4778adb66ddcc34d7c314f Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Tue, 24 Jan 2012 21:01:06 +0000 Subject: [PATCH] (trunk web) don't listen for drag-and-drop events in mobile mode --- web/javascript/transmission.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/javascript/transmission.js b/web/javascript/transmission.js index afdc64d9a..f4adebd3c 100644 --- a/web/javascript/transmission.js +++ b/web/javascript/transmission.js @@ -55,9 +55,6 @@ Transmission.prototype = $('#upload_cancel_button').click($.proxy(this.hideUploadDialog,this)); $('#turtle-button').click($.proxy(this.toggleTurtleClicked,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 jQuery.event.props.push("dataTransfer"); @@ -75,6 +72,9 @@ Transmission.prototype = $(document).bind('keydown', $.proxy(this.keyDown,this) ); $(document).bind('keyup', $.proxy(this.keyUp, 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) ); this.setupSearchBox();