]> source.dussan.org Git - jquery-ui.git/commitdiff
demos draggable handle: disable text selection
authorRichard Worth <rdworth@gmail.com>
Fri, 30 Jan 2009 05:20:05 +0000 (05:20 +0000)
committerRichard Worth <rdworth@gmail.com>
Fri, 30 Jan 2009 05:20:05 +0000 (05:20 +0000)
demos/draggable/handle.html

index 3e600d64040a0c4e88d6943af51ae2a18454fcc0..57082a0f6d4bfc68e6dc92c362afead7ec8dc247 100644 (file)
@@ -15,6 +15,7 @@
        $(function() {
                $("#draggable").draggable({ handle: 'p' });
                $("#draggable2").draggable({ cancel: "p.ui-widget-header" });
+               $(".ui-draggable").disableSelection();
        });
        </script>
 </head>