diff options
Diffstat (limited to 'chrome/js/settings.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; |