Delete the shadow effect of a jQuery UI dialog

The latest revisions of jQuery UI has been eliminated the option shadow that could remove the shadow around the dialogues. The option, strangely enough, still plays its role but, in contrast, produces a Javascript error and prevents the movement of a dialogue:

1
2
3
4
5
/ / The shadow disappears but the dialogue can not move
) . dialog ( { $ ('# MyDialog'.) Dialog ({
, title: "Try Shadow"
shadow: false
}

One possible solution is:

1
2
3
4
5
/ / Works with jQuery UI 1.6rc6
) . dialog ( { $ ('# MyDialog'.) Dialog ({
, title: "Try Shadow"
function ( ) { $ ( '.ui-widget-shadow' ) . css ( 'display' , 'none' ) ; } open: function () {$ ('. ui-widget-shadow'). css ('display', 'none');}
}