- Posts: 16
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Custom.js not loading
- harvas
- Topic Author
- Offline
- New Member
Less
More
6 years 2 months ago #163771
by harvas
Custom.js not loading was created by harvas
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.
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.
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
6 years 2 months ago - 6 years 2 months ago #163792
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on 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
manual.limesurvey.org/New_Template_Syste...not_applied.3F.22.29
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Last edit: 6 years 2 months ago by jelo.
The topic has been locked.
- harvas
- Topic Author
- Offline
- New Member
Less
More
- Posts: 16
- Thank you received: 0
6 years 2 months ago #163842
by harvas
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.
Replied by harvas on 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.
The topic has been locked.
- LouisGac
- Visitor
6 years 2 months ago #163843
by LouisGac
Replied by LouisGac on topic Custom.js not loading
I'm going to give it a try.
It seems we have few regressions in last release.
It seems we have few regressions in last release.
The topic has been locked.
- LouisGac
- Visitor
6 years 2 months ago #163844
by LouisGac
Replied by LouisGac on topic Custom.js not loading
I can't reproduce on latest version.
What is your build number?
What is your build number?
The topic has been locked.
- harvas
- Topic Author
- Offline
- New Member
Less
More
- Posts: 16
- Thank you received: 0
6 years 2 months ago #163845
by harvas
Replied by harvas on topic Custom.js not loading
The version I am using is: Version 3.2.1+180207. Attached some screenshots to understand the issue.
Attachments:
The topic has been locked.
- LouisGac
- Visitor
6 years 2 months ago #163846
by LouisGac
Replied by LouisGac on topic Custom.js not loading
ok, I can reproduce with debug mode off...
The topic has been locked.
- LouisGac
- Visitor
6 years 2 months ago #163848
by LouisGac
Replied by LouisGac on 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 ).
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 ).
The topic has been locked.
- harvas
- Topic Author
- Offline
- New Member
Less
More
- Posts: 16
- Thank you received: 0
6 years 2 months ago - 6 years 2 months ago #163849
by harvas
Replied by harvas on 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?
Current config is: $config = '30013';
What do I change it to?
Last edit: 6 years 2 months ago by harvas.
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
6 years 2 months ago - 6 years 2 months ago #163850
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Custom.js not loading
Just increase $config to e.g. 30014. Just add +1 to the current version number.
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Last edit: 6 years 2 months ago by jelo.
The topic has been locked.