Commit bcf6762f authored by serya@google.com's avatar serya@google.com

Prevent dragging in open/save dialogs.

Files in open and save dialogs are draggable (with no effect). Fixing it.

BUG=None
TEST=Manual test.

Review URL: https://chromiumcodereview.appspot.com/10108017

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132585 0039d316-1c4b-4281-b951-d872f2087c98
parent 17aee817
......@@ -702,11 +702,6 @@ input.rename {
width: 114px;
}
.thumbnail-grid li,
.detail-table list li {
-webkit-user-drag: element;
}
/* The cr.ui.Table representing the detailed file list. */
.detail-table {
border: 0;
......
......@@ -39,6 +39,7 @@ FileTransferController.prototype = {
* @param {cr.ui.List} list Items in the list will be draggable.
*/
attachDragSource: function(list) {
list.style.webkitUserDrag = 'element';
list.addEventListener('dragstart', this.onDragStart_.bind(this, list));
list.addEventListener('dragend', this.onDragEnd_.bind(this, list));
list.addEventListener('drag', this.onDrag_.bind(this, list));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment