Merge pull request #380 from DimalChandrasiri/master

Fix for modal popup overlay bug
This commit is contained in:
Kamidu Sachith Punchihewa 2016-10-07 14:38:04 +05:30 committed by GitHub
commit 8740eae61a

View File

@ -28,6 +28,16 @@ function inputIsValid(regExp, inputString) {
return regExp.test(inputString);
}
/*
* Fix for the modal popup overlay disappear bug
*/
$('.modal').on('hidden.bs.modal',function(){
if($('.modal-backdrop').length == 2){
$('.modal-backdrop')[0].remove()
}
});
$(document).ready(function () {
var modalPopup = ".modal";
// var modalPopupContainer = modalPopup + " .modal-content";