Created
March 9, 2018 13:45
-
-
Save cristacheda/32cc331f9c8aed826595c2f558f4e91c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
jQuery(document).ready(function($) { | |
jQuery('form').submit(function(){ | |
for( key in inc_popups ) { | |
var item = inc_popups[key]; | |
var data = item.extend.data; | |
// To close any open popup remove the condition... | |
if ( data.popup_id == 1729 ) { //use your own popup_id here | |
item.extend.close_popup(); | |
} | |
} | |
}); | |
}); | |
</script> | |
https://premium.wpmudev.org/forums/topic/popup-will-not-closed-after-submit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment