[fix] website snippet: alert for drop error

bzr revid: chm@openerp.com-20130919135138-6dfcol6b8o904r2s
This commit is contained in:
Christophe Matthieu 2013-09-19 15:51:38 +02:00
parent 20b391d6c8
commit e7e41de591
1 changed files with 5 additions and 1 deletions

View File

@ -398,7 +398,11 @@
$('.oe_drop_zone').droppable('destroy').remove();
if (!dropped) {
self.$modal.modal('toggle');
setTimeout(function () {self.$modal.fadeOut();}, 3000);
setTimeout(function () {
self.$modal.fadeOut(function () {
self.$modal.modal('hide');
});
}, 3000);
}
},
});