aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--demos/droppable/propagation.html5
1 files 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!');
}
});