?
avatar pablopalillo
pablopalillo
1 Jun 2017

Steps to reproduce the issue

modal worked in 3.4 version of joomla.
In 3.7 version , the modal SqueezeBox works fine in the first try but in the second try appears black screen without content .

Actual result

In google chrome show this error.

modal.js?650a663…:7 Uncaught TypeError: Cannot read property 'removeEvent' of undefined
    at Object.toggleListeners (modal.js?650a663…:7)
    at Object.close (modal.js?650a663…:7)
    at HTMLAnchorElement.m (mootools-core.js?650a663…:119)

System information (as much as possible)

joomla 3.7
php 7.1

creation modal code

	function callsqueeze(name, big) {


      	var pxX = 600;
		var pxY = 300;
		if (typeof(big) == "undefined") {
			big = false;
		}
		if (big) {
			var pxX = 800;
		}
		if (typeof(name) == "undefined") {
			name = 'posContent';
		}
		var hiddiv = jQuery('#' + name);

		hiddiv.show();
		SqueezeBox.setContent('clone', hiddiv);
		hiddiv.hide();
		SqueezeBox.resize({x: pxX, y: pxY});

	}

Additional comments

tanks a lot

avatar pablopalillo pablopalillo - open - 1 Jun 2017
avatar joomla-cms-bot joomla-cms-bot - change - 1 Jun 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 1 Jun 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 1 Jun 2017
Category JavaScript
avatar tonypartridge
tonypartridge - comment - 2 Jun 2017

Hello,

Is this in the front or backend of Joomla?!

Did you clear your browser cache?

Did you try on Joomla! 3.6?

avatar franz-wohlkoenig franz-wohlkoenig - change - 2 Jun 2017
Status New Information Required
avatar pablopalillo
pablopalillo - comment - 5 Jul 2017

Hello,
The problem is with a old library for tables sorttables https://github.com/stuartlangridge/sorttable this present a incompatibility with mootools in the joomla version 3.7.

the problem can be solved implementing this pull request in this library.
stuartlangridge/sorttable#19

Thank you so much

avatar pablopalillo pablopalillo - change - 5 Jul 2017
Status Information Required Closed
Closed_Date 0000-00-00 00:00:00 2017-07-05 12:44:21
Closed_By pablopalillo
avatar pablopalillo pablopalillo - close - 5 Jul 2017

Add a Comment

Login with GitHub to post a comment