From 88c075f3834e3c51467cb21a19af4749015b7c63 Mon Sep 17 00:00:00 2001 From: foz1284 Date: Thu, 2 Feb 2012 13:26:48 +0000 Subject: [PATCH] Moved where the History gets removed from the window as it was removing history from a second block that was happening immidiately after $.unblockUI() was called --- jquery.blockUI.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.blockUI.js b/jquery.blockUI.js index 55b52a9..7603cbd 100644 --- a/jquery.blockUI.js +++ b/jquery.blockUI.js @@ -380,6 +380,7 @@ function remove(el, opts) { var full = (el == window); var $el = $(el); var data = $el.data('blockUI.history'); + $(el).removeData('blockUI.history'); var to = $el.data('blockUI.timeout'); if (to) { clearTimeout(to); @@ -423,7 +424,6 @@ function reset(els,data,opts,el) { data.el.style.position = data.position; if (data.parent) data.parent.appendChild(data.el); - $(el).removeData('blockUI.history'); } if (typeof opts.onUnblock == 'function')