From 81998f3fda95c7dbd81a7280ac820d72e59d4359 Mon Sep 17 00:00:00 2001 From: twentyfortysix <2046@2046.cz> Date: Wed, 13 May 2015 11:28:24 +0200 Subject: [PATCH] added removeClass('modal-open'); this makes the page after the modal is closed scrollable.. while conflicting with other plugins --- js/thickbox.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/thickbox.js b/js/thickbox.js index 76e8a5f..7ae9344 100755 --- a/js/thickbox.js +++ b/js/thickbox.js @@ -11,6 +11,7 @@ function tb_remove() { jQuery("#TB_imageOff").unbind("click"); jQuery("#TB_closeWindowButton").unbind("click"); + jQuery("body").removeClass('modal-open'); // jQuery("#TB_window").fadeOut("fast",function(){jQuery('#TB_window,#TB_overlay,#TB_HideSelect').trigger("unload").unbind().remove();}); jQuery("#TB_window").fadeOut("fast",function(){jQuery('#TB_window,#TB_overlay,#TB_HideSelect').unload("#TB_ajaxContent").unbind().remove();}); jQuery("#TB_load").remove(); @@ -21,4 +22,4 @@ function tb_remove() { } jQuery(document).unbind('.thickbox'); return false; -} \ No newline at end of file +}