diff options
author | Paul Bakaus <paul.bakaus@googlemail.com> | 2008-09-18 09:30:14 +0000 |
---|---|---|
committer | Paul Bakaus <paul.bakaus@googlemail.com> | 2008-09-18 09:30:14 +0000 |
commit | c40491f1879bcf82246059cb40a6a610cac54b18 (patch) | |
tree | 36b97f44aca5fad1ba9d55d0d291ecddb3d85579 | |
parent | 73d70bcb6719de8d12f41d51698417d7b33e400b (diff) | |
download | jquery-ui-c40491f1879bcf82246059cb40a6a610cac54b18.tar.gz jquery-ui-c40491f1879bcf82246059cb40a6a610cac54b18.zip |
dragging handle won't fire onunload event anymore (fixes #3228)
-rw-r--r-- | ui/ui.slider.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/ui.slider.js b/ui/ui.slider.js index be466a787..e31e64545 100644 --- a/ui/ui.slider.js +++ b/ui/ui.slider.js @@ -109,8 +109,9 @@ $.widget("ui.slider", { .each(function() { new handleclass(this); }) - .wrap('<a href="javascript:void(0)" style="outline:none;border:none;"></a>') + .wrap('<a href="#" style="outline:none;border:none;"></a>') .parent() + .bind('click', function() { return false; }) .bind('focus', function(e) { self._focus(this.firstChild); }) .bind('blur', function(e) { self._blur(this.firstChild); }) .bind('keydown', function(e) { if(!self.options.noKeyboard) return self._keydown(e.keyCode, this.firstChild); }) |