Page 1 of 1

FIX AVAILABLE FOR DUPLICATE CAPTION in Joomla > 3

Posted: Mon Mar 02, 2015 7:51 pm
by lisslugo
In trying to resolve the issue with duplicate captions, I came up with the solution
to solve this issue. However, it does require a change to the caption.js file located
in /media/system/js folder. It solves the issue by checking to see if the image caption
has already been added to the content, if it has then don't add the caption again...
otherwise add it. This works just fine. Here's the change:

if(jQuery("p[class='img_caption']").length == 0) {

Add this if statement to the beginning of the code so that the code only executes if
the image caption has not been added, as shown below.

var JCaption=function(c){if(jQuery("p[class='img_caption']").length == 0) {var e,b,a=function(f){e=jQuery.noConflict();............};

My only request is that this code change is added to the next Joomla version so that every time Joomla is updated to the next version this change is not removed but rather kept. Thank You.

Re: FIX AVAILABLE FOR DUPLICATE CAPTION in Joomla > 3

Posted: Tue Mar 03, 2015 9:51 am
by jcms
which view do you get this bug?