Kunena 7.0.4 Released

The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0

Solved Image modal window submit button saves post

More
9 years 8 months ago #179190 by 810
some time ago an other user had the same issue, there was a broken 3rt party plugin.

try to find the topic, on the search. maybe it will help you. I will test later today

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

More
9 years 8 months ago #179215 by greg1
Found the culprit!

/components/com_kunena/template/crypsisb3/assets/js/ markitup.set.js

The version I had after 5.0.1 looks like this:
Code:
// For picture settings $('#picture-modal-submit').click(function() { var modalpictureurl = $('#modal-picture-url').val(); var modalpicturesize = $('#modal-picture-size').val(); var modalpicturealt = $('#modal-picture-alt').val(); var size = ''; if ( modalpicturesize.length > 0 ) { size = 'size='+modalpicturesize; } var alt = ''; if ( modalpicturealt.length > 0 ) { alt = 'alt='+modalpicturealt; } if ( modalpictureurl.length > 0 ) { $.markItUp( { openWith:'[img '+size+' '+alt+']'+modalpictureurl, closeWith:'[/img]' } ); return false; } });

And the one on the working site looks like this:
Code:
// For picture settings $('#picture-modal-submit').click(function() { var modalpictureurl = $('#modal-picture-url').val(); var modalpicturesize = $('#modal-picture-size').val(); var size = ''; if ( modalpicturesize.length > 0 ) { size = 'size='+modalpicturesize; } if ( modalpictureurl.length > 0 ) { $.markItUp( { openWith:'[img '+size+']'+modalpictureurl, closeWith:'[/img]' } ); return false; } });

At submit, having an empty picture alt field (because the modal doesn't have an input field for it) throws an error, and fails.


After changing this part of the javascript, the modal works perfectly.
So case closed, but please check, how the incorrect code got into 5.0.1.

Thanks

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

Time to create page: 0.252 seconds