Commit 36c2a999 authored by jhawkins@chromium.org's avatar jhawkins@chromium.org

Options: Disable dragging when the list is disabled.

BUG=91734
TEST=none

R=csilv@chromium.org

Review URL: http://codereview.chromium.org/7585019

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95662 0039d316-1c4b-4281-b951-d872f2087c98
parent 5656709a
...@@ -83,6 +83,7 @@ cr.define('options.browser_options', function() { ...@@ -83,6 +83,7 @@ cr.define('options.browser_options', function() {
urlField.addEventListener('blur', function(event) { urlField.addEventListener('blur', function(event) {
self.parentNode.autocompleteList.detach(); self.parentNode.autocompleteList.detach();
}); });
this.draggable = true; this.draggable = true;
}, },
...@@ -171,6 +172,12 @@ cr.define('options.browser_options', function() { ...@@ -171,6 +172,12 @@ cr.define('options.browser_options', function() {
* @private * @private
*/ */
handleDragStart_: function(e) { handleDragStart_: function(e) {
// Prevent dragging if the list is disabled.
if (this.disabled) {
e.preventDefault();
return false;
}
var target = e.target; var target = e.target;
// StartupPageListItem should be the only draggable element type in the // StartupPageListItem should be the only draggable element type in the
// page but let's make sure. // page but let's make sure.
......
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