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