SSL Labs Score

Log in to participate

There is no cost to join RicheyWeb, and membership is a requirement to submit bug reports and participate in the support forums.

× Extension Discussions

SessionKeeper - conflict with IceMegaMenu

More
3 months 2 weeks ago #237 by holmesg
holmesg created the topic: SessionKeeper - conflict with IceMegaMenu
Session keeper won't redirect as desired on a site with IceMegamenu.

IceMegamenu is doing something generic with squeezebox, taking over the close function. This is causing a JavaScript error which is preventing the redirect from happening upon session expiration.

Here is the error:
Uncaught TypeError: Cannot read property 'close' of undefined


Here is the problem code from IceMegaMenu:
// Add extra modal close functionality for tinyMCE-based editors
document.onreadystatechange = function () {
if (document.readyState == 'interactive' && typeof tinyMCE != 'undefined' && tinyMCE)
{
if (typeof window.jModalClose_no_tinyMCE === 'undefined')
{
window.jModalClose_no_tinyMCE = typeof(jModalClose) == 'function' ? jModalClose : false;

jModalClose = function () {
if (window.jModalClose_no_tinyMCE) window.jModalClose_no_tinyMCE.apply(this, arguments);
tinyMCE.activeEditor.windowManager.close();
};
}

if (typeof window.SqueezeBoxClose_no_tinyMCE === 'undefined')
{
if (typeof(SqueezeBox) == 'undefined') SqueezeBox = {};
window.SqueezeBoxClose_no_tinyMCE = typeof(SqueezeBox.close) == 'function' ? SqueezeBox.close : false;

SqueezeBox.close = function () {
if (window.SqueezeBoxClose_no_tinyMCE) window.SqueezeBoxClose_no_tinyMCE.apply(this, arguments);
tinyMCE.activeEditor.windowManager.close();
};
}
}
};




Here is the line where it errors:
tinyMCE.activeEditor.windowManager.close();

Please Log in or Create an account to join the conversation.

More
3 months 2 weeks ago #239 by michael
michael replied the topic: SessionKeeper - conflict with IceMegaMenu
Interesting - but I'm not sure how I can accommodate other extensions that change how squeezebox operates....

Maybe providing an option to use a bootstrap modal instead would be good in addition to squeezebox... What would you think about that?

Please Log in or Create an account to join the conversation.

More
3 months 2 weeks ago #246 by holmesg
holmesg replied the topic: SessionKeeper - conflict with IceMegaMenu
An option to use a bootstrap modal instead of squeezebox would be great!

Please Log in or Create an account to join the conversation.

More
3 months 1 week ago #254 by holmesg
holmesg replied the topic: SessionKeeper - conflict with IceMegaMenu
What can we do to help facilitate that addition to Session Keeper? :)

Please Log in or Create an account to join the conversation.

More
3 months 1 week ago #255 by michael
michael replied the topic: SessionKeeper - conflict with IceMegaMenu
I just need to finish a few small things for my customers.

Please Log in or Create an account to join the conversation.

More
3 months 1 week ago #256 by michael
michael replied the topic: SessionKeeper - conflict with IceMegaMenu
Going down my list of things to do, one of the items a customer wants is a facility to create bootstrap modals. So, some crossover here. I'll get re-acquainted with bootstrap modals and fix up Session Keeper when I'm done.
The following user(s) said Thank You: holmesg

Please Log in or Create an account to join the conversation.

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to add attachements.
  • Not Allowed: to edit your message.
Kunena Forum