Changeset 2473
- Timestamp:
- 07/25/07 00:40:22 (1 year ago)
- Files:
-
- 1 modified
-
trunk/plugins/blockUI/jquery.blockUI.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/blockUI/jquery.blockUI.js
r2459 r2473 1 1 /* 2 2 * jQuery blockUI plugin 3 * Version 1. 29 (07/22/2007)3 * Version 1.30 (07/24/2007) 4 4 * @requires jQuery v1.1.1 5 5 * … … 67 67 68 68 // expose version number so other plugins can interogate 69 $.blockUI.version = 1. 28;69 $.blockUI.version = 1.30; 70 70 71 71 /** … … 190 190 allowTabToLeave: 0, 191 191 // Title attribute for overlay when using displayBox 192 closeMessage: 'Click to close' 192 closeMessage: 'Click to close', 193 194 fadeOut: 1, // true for fadeOut unblocking 195 fadeTime: 400 193 196 }; 194 197 … … 290 293 this.bind(0, el); 291 294 var full = el == window; 292 if (full) { 293 $('body').children().filter('.blockUI').remove(); 294 this.pageBlock = this.pageBlockEls = null; 295 } 296 else $('.blockUI', el).remove(); 295 var els = full ? $('body').children().filter('.blockUI') : $('.blockUI', el); 296 var count = els.length; 297 if (full) this.pageBlock = this.pageBlockEls = null; 298 299 if ($.blockUI.defaults.fadeOut) { 300 els.fadeOut($.blockUI.defaults.fadeTime, function() { 301 if (--count <= 0) els.remove(); 302 }); 303 } 304 else els.remove(); 297 305 }, 298 306 boxRemove: function(el) {