aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Bakaus <paul.bakaus@googlemail.com>2009-01-20 13:36:29 +0000
committerPaul Bakaus <paul.bakaus@googlemail.com>2009-01-20 13:36:29 +0000
commitb08c9587f1f22e7321c92a0b7df72f7ff3046939 (patch)
tree5153fccf08f19ee805f012f8bae626efc7463d7d
parent55f3ffb7b9bdbb566406ec3a1bc068e90b6e2bd7 (diff)
downloadjquery-ui-b08c9587f1f22e7321c92a0b7df72f7ff3046939.tar.gz
jquery-ui-b08c9587f1f22e7321c92a0b7df72f7ff3046939.zip
demos: fixed propagation demo callback
-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!');
}
});