?
avatar compojoom
compojoom
20 Sep 2012

I'm using the jhtmltabs class in the backend this generates the following js error:
SyntaxError: missing } after property list

Looking at the generated code:

new JTabs(tabs, { useStorage: 'false', titleSelector: ''dt.tabs'', descriptionSelector: ''dd.tabs''});

as you can see we have double single quotes and that is not valid js.

this is generated in html\tabs.php on line 88 and 89:

        $opt['titleSelector']       = "'dt.tabs'";
        $opt['descriptionSelector'] = "'dd.tabs'";

When I remove the single quotes from here the tabs are properly displayed.

avatar compojoom compojoom - open - 20 Sep 2012
avatar nicksavov
nicksavov - comment - 5 May 2013

Thanks for posting this, Daniel! Can you send a pull request? If you need to learn how, check out this tutorial:
http://docs.joomla.org/Git_for_Coders

I also created a tracker item for this issue:
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=30855

You can receive notifications from it by signing in, going to the item, and clicking "Monitor Item" in the left column.

While we’re transitioning to a new integrated tracker, the JoomlaCode tracker is where we do most of Joomla's bug fixing. You can find out more about the process at:
http://docs.joomla.org/Filing_bugs_and_issues

I'm going to close this item, since we have the above JoomlaCode Tracker Item. If and when you submit a pull request, please reference the JoomlaCode Tracker Item URL:
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=30855

Let me know if you have any questions and I'll be glad to answer. Thanks again, Daniel!

avatar zero-24 zero-24 - close - 5 May 2013
avatar nicksavov nicksavov - close - 5 May 2013
avatar zero-24 zero-24 - change - 7 Jul 2015
Labels Added: ?
Removed: ?
Build staging

Add a Comment

Login with GitHub to post a comment