Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function ($) {
- var locationInterval,
- previousLocation;
- window.calendarSubmittedInWindow = function (externalWindow) {
- if (locationInterval) {
- clearInterval(locationInterval);
- locationInterval = undefined;
- }
- locationInterval = setInterval(function () {
- if (previousLocation !== undefined && previousLocation !== externalWindow.location.href) {
- clearInterval(locationInterval);
- window.location.href = externalWindow.location.href;
- return;
- }
- previousLocation = externalWindow.location.href;
- }, 1);
- };
- })(jQuery);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement