From f58277a521ae41b1d3e054a419ef5fda85e7db21 Mon Sep 17 00:00:00 2001 From: Alexander Schmitz Date: Thu, 1 Jan 2015 12:11:06 -0500 Subject: Droppable: Add classes option Ref #7053 Ref gh-1411 --- demos/droppable/accepted-elements.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'demos/droppable/accepted-elements.html') diff --git a/demos/droppable/accepted-elements.html b/demos/droppable/accepted-elements.html index 19db54650..2a5029526 100644 --- a/demos/droppable/accepted-elements.html +++ b/demos/droppable/accepted-elements.html @@ -20,8 +20,10 @@ $( "#draggable, #draggable-nonvalid" ).draggable(); $( "#droppable" ).droppable({ accept: "#draggable", - activeClass: "ui-state-hover", - hoverClass: "ui-state-active", + classes: { + "ui-droppable-active": "ui-state-active", + "ui-droppable-hover": "ui-state-hover" + }, drop: function( event, ui ) { $( this ) .addClass( "ui-state-highlight" ) -- cgit v1.2.3