diff options
author | Einar Egilsson | 2011-08-30 14:55:16 +0200 |
---|---|---|
committer | Einar Egilsson | 2011-08-30 14:55:16 +0200 |
commit | 9ef693c6f7d0c720e33b5415bd78191d52e1eef8 (patch) | |
tree | 9ab24b40df8343dbfe8fd28a3b9725f6d56a73b2 /chrome/js | |
parent | e5f69904485c924d8eef44dd64ee7a07d9fc4789 (diff) |
Some style fixes
Diffstat (limited to 'chrome/js')
-rw-r--r-- | chrome/js/settings.js | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/chrome/js/settings.js b/chrome/js/settings.js index 29cdf29..1a190ff 100644 --- a/chrome/js/settings.js +++ b/chrome/js/settings.js @@ -97,7 +97,12 @@ $(document).ready(function() { } ev.preventDefault(); }); - + + $('#redirect-list li div a.edit').live('click', function(ev) { + var redirect = $(this.parentNode.parentNode).data('redirect'); + $('#redirect-form').show(); + ev.preventDefault(); + }); databind(); $('#import').click(importRedirects); @@ -112,13 +117,12 @@ $(document).ready(function() { bindConfig(); prefs.addListener({ changedPrefs:bindConfig}); - var moving = false; - - function drag() { - - } + var movingElement = null; - $('li').mousedown(function() { + $('li').mousedown(function(ev) { + if (ev.target && ev.target.tagName == 'A') { + return; + } $(this).css('background', '-moz-linear-gradient(top, #aac, #99b)'); $('#redirect-list').css('cursor', 'move'); movingElement = this; |