Custom.js not loading

More
7 months 1 week ago #163771 by harvas
harvas created the topic: Custom.js not loading
Hello all,

I have extended the original vanilla theme, into a new theme for my survey. I have modified only the custom.js file in order to add a couple of functions. This file was then stored locally into the upload directory under the new theme folder. However, when the survey is loading, it still uses the original custom.js from the vanilla template and not the one I have changed. Notes: (a) survey configured to use javascript, (b) survey set to the new extended theme, (c) survey changed not to inherit from original. I have looked into the manual, but it is not clear. Any advice is welcome.

Thanks.

X.

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

More
7 months 1 week ago - 7 months 1 week ago #163792 by jelo
jelo replied the topic: Custom.js not loading
Welcome to the asset manager world. It is really time to get a cache rebuild button. Will save a lot of Lifetime here.
manual.limesurvey.org/New_Template_Syste...not_applied.3F.22.29

Are you a student conducting a survey? If yes, tell me why you use LimeSurvey?
www.limesurvey.org/forum/development/116...y-you-use-limesurvey
Last Edit: 7 months 1 week ago by jelo.

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

More
7 months 1 week ago #163842 by harvas
harvas replied the topic: Custom.js not loading
:)

Thanks for the reply Jelo. I have already read this. I am using LS Theme Editor so apparently there should be not problem. Nevertheless, I will try to dig deeper. Any other points are always welcome.

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

More
7 months 1 week ago #163843 by LouisGac
LouisGac replied the topic: Custom.js not loading
I'm going to give it a try.
It seems we have few regressions in last release.

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

More
7 months 1 week ago #163844 by LouisGac
LouisGac replied the topic: Custom.js not loading
I can't reproduce on latest version.
What is your build number?

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

More
7 months 1 week ago #163845 by harvas
harvas replied the topic: Custom.js not loading
The version I am using is: Version 3.2.1+180207. Attached some screenshots to understand the issue.
Attachments:

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

More
7 months 1 week ago #163846 by LouisGac
LouisGac replied the topic: Custom.js not loading
ok, I can reproduce with debug mode off...

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

More
7 months 1 week ago #163848 by LouisGac
LouisGac replied the topic: Custom.js not loading
so, if you need to fix it quickly:

increment the asset number in application/config/version.php

we will release a new version today with the fix for theme editor (and the refresh asset button ).

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

More
7 months 1 week ago - 7 months 1 week ago #163849 by harvas
harvas replied the topic: Custom.js not loading
Thank you for your quick response and engagement on the matter. Much appreciated.
Current config is: $config = '30013';
What do I change it to?
Last Edit: 7 months 1 week ago by harvas.

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

More
7 months 1 week ago - 7 months 1 week ago #163850 by jelo
jelo replied the topic: Custom.js not loading
Just increase $config to e.g. 30014. Just add +1 to the current version number.

Are you a student conducting a survey? If yes, tell me why you use LimeSurvey?
www.limesurvey.org/forum/development/116...y-you-use-limesurvey
Last Edit: 7 months 1 week ago by jelo.

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

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!