{"action":"created","issue":{"url":"https://api.github.com/repos/nakupanda/bootstrap3-dialog/issues/202","labels_url":"https://api.github.com/repos/nakupanda/bootstrap3-dialog/issues/202/labels{/name}","comments_url":"https://api.github.com/repos/nakupanda/bootstrap3-dialog/issues/202/comments","events_url":"https://api.github.com/repos/nakupanda/bootstrap3-dialog/issues/202/events","html_url":"https://github.com/nakupanda/bootstrap3-dialog/issues/202","id":116465716,"number":202,"title":"\"closable\" doesn't work when re-open the dialog","user":{"login":"KayKwon","id":4044240,"avatar_url":"https://avatars.githubusercontent.com/u/4044240?v=3","gravatar_id":"","url":"https://api.github.com/users/KayKwon","html_url":"https://github.com/KayKwon","followers_url":"https://api.github.com/users/KayKwon/followers","following_url":"https://api.github.com/users/KayKwon/following{/other_user}","gists_url":"https://api.github.com/users/KayKwon/gists{/gist_id}","starred_url":"https://api.github.com/users/KayKwon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KayKwon/subscriptions","organizations_url":"https://api.github.com/users/KayKwon/orgs","repos_url":"https://api.github.com/users/KayKwon/repos","events_url":"https://api.github.com/users/KayKwon/events{/privacy}","received_events_url":"https://api.github.com/users/KayKwon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-12T02:23:08Z","updated_at":"2015-11-12T03:50:35Z","closed_at":null,"body":"As mentioned, closable option works only for very first open. When I close then re-use the dialog, closable doesn't work. I want let a user wait until ajax ends, but it cannot block a user input since the second click event hits.\r\n\r\n```javascript\r\nvar dialog = new BootstrapDialog({\r\n        title: 'Now loading...',\r\n        message: '<p>my message</p>',\r\n        type: BootstrapDialog.TYPE_WARNING,\r\n        closable: false,\r\n        closeByBackdrop: false,\r\n        closeByKeyboard: false,\r\n    });\r\ng_loading = {spin: spinner, dialog: dialog};   // assign to global variable\r\n\r\nvar clickEvent = function(oEvent) { // click event handler\r\n        // open the dialog, click event htis multiple times\r\n        g_loading.dialog.open();\r\n        // ajax function call\r\n        geolocationQueryAjax(postData=postData, cLatLng=cLatLng, oMap=oMap);\r\n    };\r\n\r\nfunction geolocationQueryAjax() {\r\n    return $.ajax({\r\n        url: 'geolocation_info',\r\n        type: 'POST',\r\n        data: postData,\r\n        dataType: 'text',\r\n        success: function(data, textStatus, xhr) {\r\n           // some work for success\r\n        },\r\n        error: function(xhr) {\r\n           // work for error\r\n        },\r\n        complete: function(xhr, textStatus) {\r\n            g_loading.spin.stop();\r\n            g_loading.dialog.close();\r\n        },\r\n    });\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/nakupanda/bootstrap3-dialog/issues/comments/155989176","html_url":"https://github.com/nakupanda/bootstrap3-dialog/issues/202#issuecomment-155989176","issue_url":"https://api.github.com/repos/nakupanda/bootstrap3-dialog/issues/202","id":155989176,"user":{"login":"KayKwon","id":4044240,"avatar_url":"https://avatars.githubusercontent.com/u/4044240?v=3","gravatar_id":"","url":"https://api.github.com/users/KayKwon","html_url":"https://github.com/KayKwon","followers_url":"https://api.github.com/users/KayKwon/followers","following_url":"https://api.github.com/users/KayKwon/following{/other_user}","gists_url":"https://api.github.com/users/KayKwon/gists{/gist_id}","starred_url":"https://api.github.com/users/KayKwon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KayKwon/subscriptions","organizations_url":"https://api.github.com/users/KayKwon/orgs","repos_url":"https://api.github.com/users/KayKwon/repos","events_url":"https://api.github.com/users/KayKwon/events{/privacy}","received_events_url":"https://api.github.com/users/KayKwon/received_events","type":"User","site_admin":false},"created_at":"2015-11-12T03:50:35Z","updated_at":"2015-11-12T03:50:35Z","body":"@nakupanda I've forked :smile: and described the problem here, http://jsfiddle.net/o5k0eaws/25/\r\nThe first time, dialog does not response with any click event. Yet when you re-open the dialog, ```closable: false, closeByBackdrop: false, closeByKeyboard: false,``` does not work."}}