Hello all.
I have this code in one of my pages:
- <input type="text" readonly="readonly" id="IpiDerechohabiente"/>
- <div id="dialogIpi" style="display:none;">
- <input type='text' value=''/>
- <button type='button' id="getName">search</button>
- <div id="ipiContent"></div>
- </div>
-
- <script>
- $(function () {
- $("#dialogIpi").dialog({
- modal: true,
- autoOpen: false,
- height: 350,
- width: 400,
- open: function(event, ui) { $(ui).find("input").focus(); },
- buttons: { close: function() { $("#dialogIpi").dialog("close"); } }
- });
-
- $("#IpiDerechohabiente").on("focus", function(){
- $("#dialogIpi").dialog("open");
- });
- });
- </script>
All is working when I click in my textbox, modal dialog opens, modal input gets focus and life is wonderful.
But, when I close the modal dialog ( with any, X or 'close' button), modal dialog close, but not the modal overlay layer, making my page shadowed and unusable.
Firebug console doesn't show any errors and I can't figure how it is happening.
Can you give me a helping hand, please?
Thanks a lot in advance.
Regards
Tistklehoff