Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/jquery.gridster.js
Original file line number Diff line number Diff line change
Expand Up @@ -719,9 +719,10 @@
* @param {Boolean|Function} silent If true, widgets below the removed one
* will not move up. If a Function is passed it will be used as callback.
* @param {Function} callback Function executed when the widget is removed.
* @param {Integer} element fadeout duration (milliseconds) (jQuery default: 400)
* @return {Class} Returns the instance of the Gridster Class.
*/
fn.remove_widget = function(el, silent, callback) {
fn.remove_widget = function(el, silent, callback, fadeoutDuration) {
var $el = el instanceof $ ? el : $(el);
var wgd = $el.coords().grid;

Expand All @@ -738,7 +739,7 @@

this.remove_from_gridmap(wgd);

$el.fadeOut($.proxy(function() {
$el.fadeOut(fadeoutDuration,$.proxy(function() {
$el.remove();

if (!silent) {
Expand Down