Youjoomla Support Forums (http://www.youjoomla.com/joomla_support/index.php)
-   YJSG Template Framework Plugin (http://www.youjoomla.com/joomla_support/forumdisplay.php?f=269)
-   -   Javascript errot in frontend edit (http://www.youjoomla.com/joomla_support/showthread.php?t=13015)

openweb 09-04-2014 07:02 AM

Javascript errot in frontend edit
 
1 Attachment(s)
When editing an article we get "Uncaught ReferenceError: jQuery is not defined yjsgshortcodes.js:101"
I think because this js is loaded before the jquery one (check image)

neo 09-04-2014 07:24 AM

the assumption is correct but it should not do that
do you have any additional admin plugins
and please advise where you are editing , front back ?
look where mine is located
Screenshot by Lightshot

joomla admin

neo 09-04-2014 07:26 AM

I see the bug , is frontend ,
on it , will give you a possible fix but cant release it now
u know the drill 2.0.1

openweb 09-04-2014 07:42 AM

ok. do you have an ETA for 2.0.1?

also check the calendar popup style in frontend edit ...

neo 09-04-2014 07:43 AM

2 weeks max maybe even sooner,
I am collecting the issues around the forum and waiting for new template to be released

openweb 09-04-2014 07:47 AM

cool thanks

neo 09-04-2014 08:08 AM

quick fix


add this

PHP Code:

$defaultJsFiles[]     = 'src/yjsgshortcodes.js'

after line 758
PHP Code:

$defaultJsFiles[]     = 'templates/' $document->template


in plugins/system/yjsg/yjsg.php

so it looks like this

PHP Code:

$defaultJsFiles[]     = 'templates/' $document->template;
$defaultJsFiles[]     = 'src/yjsgshortcodes.js'

Screenshot by Lightshot


All times are GMT -4. The time now is 01:04 AM.

Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.