Fixed #3454 - Sortable .createHelper() bug

This commit is contained in:
Eduardo Lundgren 2008-09-19 15:20:34 +00:00
parent 7c2e7965e9
commit 5bdcacd1f6

View File

@ -390,7 +390,7 @@ $.widget("ui.sortable", $.extend({}, $.ui.mouse, {
},
createHelper: function() {
createHelper: function(e) {
var o = this.options;
var helper = typeof o.helper == 'function' ? $(o.helper.apply(this.element[0], [e, this.currentItem])) : (o.helper == "original" ? this.currentItem : this.currentItem.clone());
@ -411,7 +411,7 @@ $.widget("ui.sortable", $.extend({}, $.ui.mouse, {
this.refreshPositions();
//Create and append the visible helper
this.helper = this.createHelper();
this.helper = this.createHelper(e);
/*
* - Position generation -