Hi, in every extension I use the modal box, I get the javascript error "Error: too much recursion" when closing the modal box
Joomla! 3.6
It is similar to this bug:
#11048
#11097
Just install extension which uses modal box (e.g. to select image, to select map, ...) in administration. Open the modal and click to close it - I have used e.g. Phoca Download, in administration of files - file edit - select the file - modal box will be opened but when clicking on close, the error stops the closing window.
Modal will be closed.
Modal will be not closed
Error: too much recursion
Joomla! 3.6 stable
Seems like this:
#11097
is the solution for tinymce only but not systematic solution for extensions which uses modal box
great, thanks !
A note: the flags (variables) are global scope so using:
window.
will not make difference, but for code consistency on reading it better make use of it, in all of the variable references
SqueezeBox_tinyMCE_added = 1;
better be:
window.SqueezeBox_tinyMCE_added = 1;
and same for other references to them
will test later "today"
Hi, testing #11097
It works OK, modal box can be closed but in Firebug I get this error:
ReferenceError: jModalClose_tinyMCE_added is not defined
media/system/js/tiny-close.min.js
Line 1
jQuery(window).bind("load",function(){if(void 0===jModalClose_tinyMCE_added){var e=void 0!==jModalClose&&"function"==typeof jModalClose?jModalClose:!1;jModalClose=function(){e&&e.apply(this,arguments),tinyMCE.activeEditor.windowManager.close()},window.jModalClose_tinyMCE_added=1}if(void 0===SqueezeBox_tinyMCE_added){var e=void 0!==SqueezeBox?SqueezeBox.close:!1;void 0===SqueezeBox&&(SqueezeBox={}),SqueezeBox.close=function(){e&&e.apply(this,arguments),tinyMCE.activeEditor.windowManager.close()},SqueezeBox_tinyMCE_added=1}});
Jan
You have not seen my comment, i asked for people to wait
you can test with "Debug" ON, that will load the no-compressed file, (click CTRL-F5 to make sure you have latest version) and it will work
or just wait 1 more commit
Hi,
i asked for people to wait
Sorry for that. Anyway when I enable DEBUG ON - I get always the minified version (tiny-close.min.js), even I refresh the site, even I clear all the history?
I just renamed the tiny-close.js to tiny-close.min.js to test it properly and yes, I confirm, when the not compressed js file is loaded, it works without any error.
Thank you, Jan
DEBUG ON (tiny-close.min.js and tinymce.min.js loaded but other libraries load not compressed version):
@andrepereiradasilva
thanks, yes, #11097
Hi, testing now, it works for me without any problems.
Thank you, Jan
Dne 19. 7. 2016 v 23:59 Georgios Papadakis napsal(a):
@andrepereiradasilva https://github.com/andrepereiradasilva
thanks, yes, #11097 #11097—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#11137 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFIdtxPta9Yv7_XYiJLh5DG4LaqHyvEpks5qXUjRgaJpZM4JM7aL.
Tato zpráva byla zkontrolována na viry programem Avast Antivirus.
https://www.avast.com/antivirus
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-07-19 23:03:26 |
Closed_By | ⇒ | brianteeman |
Labels |
Added:
?
|
@dgt41
It is still causing a loop
tiny-close(-min).js should be like:
behaviour.php should
. either always load tiny-mce(-min).js
. or use code like:
[EDIT]
I have updated above code, i did not put flag checking to behaviour.php !!