Change the location of the SPJS library name

Forums Classic DFFS Change the location of the SPJS library name

Viewing 1 reply thread
  • Author
    Posts
    • #13404
      Frank Montalti
      Participant

      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

    • #13406
      Alexander Bautz
      Keymaster

      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

Viewing 1 reply thread
  • You must be logged in to reply to this topic.