mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-10-05 01:44:18 +00:00
demos/droppable: fixed up description of activeClass part of visual feedback demo
This commit is contained in:
parent
bf73f8c5be
commit
3e4ed582b7
@ -24,8 +24,8 @@
|
|||||||
|
|
||||||
$("#draggable2").draggable();
|
$("#draggable2").draggable();
|
||||||
$("#droppable2").droppable({
|
$("#droppable2").droppable({
|
||||||
|
accept: "#draggable2",
|
||||||
activeClass: 'ui-state-hover',
|
activeClass: 'ui-state-hover',
|
||||||
hoverClass: 'ui-state-active',
|
|
||||||
drop: function(event, ui) {
|
drop: function(event, ui) {
|
||||||
$(this).addClass('ui-state-highlight').find('p').html('Dropped!');
|
$(this).addClass('ui-state-highlight').find('p').html('Dropped!');
|
||||||
}
|
}
|
||||||
@ -37,7 +37,7 @@
|
|||||||
<body>
|
<body>
|
||||||
<div class="demo">
|
<div class="demo">
|
||||||
|
|
||||||
<h3 class="docs">Feedback on hover only:</h3>
|
<h3 class="docs">Feedback on hover:</h3>
|
||||||
|
|
||||||
<div id="draggable" class="ui-widget-content">
|
<div id="draggable" class="ui-widget-content">
|
||||||
<p>Drag me to my target</p>
|
<p>Drag me to my target</p>
|
||||||
@ -47,7 +47,7 @@
|
|||||||
<p>Drop here</p>
|
<p>Drop here</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h3 class="docs">Feedback on hover and when dropped:</h3>
|
<h3 class="docs">Feedback on activating draggable:</h3>
|
||||||
|
|
||||||
<div id="draggable2" class="ui-widget-content">
|
<div id="draggable2" class="ui-widget-content">
|
||||||
<p>Drag me to my target</p>
|
<p>Drag me to my target</p>
|
||||||
|
Loading…
Reference in New Issue
Block a user