malsup / blockui

jQuery BlockUI Plugin
http://jquery.malsup.com/block/
1.69k stars 506 forks source link

option for appending-target #9

Closed dittodhole closed 6 years ago

dittodhole commented 14 years ago

if you are using eg. asp.net, it would be nice to have an option for the appending target selector.

a rudimental fix for Version 2.35 (23-SEP-2010):

change

//$([lyr1[0],lyr2[0],lyr3[0]]).appendTo(full ? 'body' : el);
var layers = [lyr1,lyr2,lyr3], $par = full ? $('body') : $(el);

to

//$([lyr1[0],lyr2[0],lyr3[0]]).appendTo(full ? 'form' : el);
var layers = [lyr1,lyr2,lyr3], $par = full ? $('form') : $(el);

and

    els = $('body').children().filter('.blockUI').add('body > .blockUI');

to

    els = $('form').children().filter('.blockUI').add('form > .blockUI');
dittodhole commented 14 years ago

oh, yes ... i forgot the lineNumbers for easier finding:

first replacement: line 272 second replacement: line 389

dittodhole commented 6 years ago

closing due to lack of interest.