From b08c9587f1f22e7321c92a0b7df72f7ff3046939 Mon Sep 17 00:00:00 2001 From: Paul Bakaus Date: Tue, 20 Jan 2009 13:36:29 +0000 Subject: demos: fixed propagation demo callback --- demos/droppable/propagation.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/demos/droppable/propagation.html b/demos/droppable/propagation.html index 5911d2f1a..0bcab928d 100644 --- a/demos/droppable/propagation.html +++ b/demos/droppable/propagation.html @@ -22,7 +22,8 @@ activeClass: 'ui-state-hover', hoverClass: 'ui-state-active', drop: function(event, ui) { - $(this).addClass('ui-state-highlight').find('p').html('Dropped!'); + $(this).addClass('ui-state-highlight').find('> p').html('Dropped!'); + return false; } }); @@ -31,7 +32,7 @@ activeClass: 'ui-state-hover', hoverClass: 'ui-state-active', drop: function(event, ui) { - $(this).addClass('ui-state-highlight').find('p').html('Dropped!'); + $(this).addClass('ui-state-highlight').find('> p').html('Dropped!'); } }); -- cgit v1.2.3