trash zone is accepting only widgets
This commit is contained in:
parent
ba1ee253bb
commit
67274f873c
1 changed files with 3 additions and 1 deletions
|
|
@ -671,7 +671,9 @@
|
||||||
if (typeof self.opts.removable === 'string') {
|
if (typeof self.opts.removable === 'string') {
|
||||||
var trashZone = $(self.opts.removable);
|
var trashZone = $(self.opts.removable);
|
||||||
if (!trashZone.data('droppable')) {
|
if (!trashZone.data('droppable')) {
|
||||||
trashZone.droppable({});
|
trashZone.droppable({
|
||||||
|
accept: '.' + self.opts.itemClass
|
||||||
|
});
|
||||||
}
|
}
|
||||||
trashZone
|
trashZone
|
||||||
.on('dropover', function(event, ui) {
|
.on('dropover', function(event, ui) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue