FIX AVAILABLE FOR DUPLICATE CAPTION in Joomla > 3

Do you have an idea for the Joomla community that you can help implement? Discuss in here.
Forum rules
Global Rules
Posting guidelines for this board <-- please read before posting.

Joomla Idea Pool <-- Add your suggestions for future versions of Joomla and vote on current suggestions.
Locked
lisslugo
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Mon Oct 20, 2014 6:46 pm

FIX AVAILABLE FOR DUPLICATE CAPTION in Joomla > 3

Post by lisslugo » Mon Mar 02, 2015 7:51 pm

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.

jcms
I've been banned!
Posts: 2233
Joined: Wed Nov 19, 2014 9:23 am

Re: FIX AVAILABLE FOR DUPLICATE CAPTION in Joomla > 3

Post by jcms » Tue Mar 03, 2015 9:51 am

which view do you get this bug?


Locked

Return to “Joomla! Ideas Forum”