Change the location of the SPJS library name
- This topic has 1 reply, 2 voices, and was last updated 10 years, 1 month ago by .
Viewing 1 reply thread
Viewing 1 reply thread
- You must be logged in to reply to this topic.
Home › Forums › Classic DFFS › Change the location of the SPJS library name
Alex,
Good day! Do I need change the variable “spjs_scripts_in_current_site” from true to false in the file “/SPJS/DFFS/loader/DFFS_loader.html” and in “/SPJS/DFFS/vLookup_ListView.html” if saving the files in a different folder (e.g., SPJS2/DFFS)?
vLookup_ListView.html & DFFS_loader.html FILES:
var spjs_scripts_in_current_site = true;
vLookup_ListView.html FILE:
spjs_path += spjs_path.substring(spjs_path.length-1) !== “/” ? “/SPJS/DFFS/” : “SPJS/DFFS/”;
Thanks!
Frank
Hi,
Firstly, I would not recommend that you change this path as it makes future updates more tricky.
If you however need to do it, you must change the path in the “installer” and “loader” files to reflect the “/SPJS2/” folder and not the “/SPJS/” folder. There will be a number of places you need to change it, but as these files are not minified it should be an easy search and replace.
The variable “spjs_scripts_in_current_site” only determines whether the script tries to read the files form the current site or from the site collection root.
Alexander