Eliminate the effect of a shadow box jQuery UI

In 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');}
}

There are no comments for this post

Leave a comment

TAG XHTML PERMITS: CODE ENTRY:
 <pre></pre> // blocco generico <code></code> // blocco generico [cc_actionscript][/cc_actionscript] // Actionscript [cc_actionscript3][/cc_actionscript3] // Actionscript 3 [cc_css][/cc_css] // CSS Style Sheet [cc_html][/cc_html] // HTML [cc_js][/cc_js] // Javascript [cc_objc][/cc_objc] // Objective-C [cc_php][/cc_objc] // PHP [cc_sql][/cc_sql] // SQL