Eliminate the shadow effect from dialogue jQuery UI

In the latest revision of jQuery UI was eliminated the option shadow which allowed to eliminate the shadow around the dialog. The option, strangely, 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

XHTML TAG PERMIT: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> INSERTION CODE:
 <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 


Stop SOPA