Résoudre le bug de jQuery datapicker qui disparaît derrière la boîte de dialogue

con datepicker , quest'ultimo scompare dietro al dialog a causa di un errata impostazione dello zIndex . En ouvrant un dialog avec jQuery UI , qui est fixé dans un champ de input avec datepicker , il disparaît derrière la dialog à cause d'un réglage incorrect de l' zIndex . , dopo l'impostazione del nostro campo input a datapicker , le seguenti righe di codice: Pour le résoudre, il suffit de brancher l'événement open au dialog , après le réglage de notre champ input au datapicker , les lignes de code suivantes:

1
2
3
4
5
6
7
8
9
10
11
/ **
* Fonctionne avec jQuery 1.3.1 et jQuery UI 1.6rc5
* /
) $ ('Div # MyDialog')
. Dialog ({
function ( e , ui ) { ouvert: function (e, ui) {
) . datepicker ( { showButtonPanel : true } ) ; Datepicker $ ('#' entrée date_insert ') ({showButtonPanel: true}).;
) . css ( "z-index" , $ ( this ) . parents ( '.ui-dialog' ) . css ( 'z-index' ) + 1 ) ; } $ ("Ui-datepicker.") Css ("z-index", $ (this) Parents () Css ('z-index') + 1. 'Ui-dialogue..);.}
}
}
);

Il n'y a aucun commentaire pour cet article

Laisser un commentaire

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