SL360 HUGE Javascript BUG
When I add some javascript into SL360 it changes the first letter of each expression into small letters.
Example:
I enter:
var player = GetPlayer();
and the result after publishing is:
var player = getPlayer();
And so of course the javascript can not work.
When I edit the published user.js then it works.
After changing again in SL360 to capital letter and republishing it is small again.
This happens with every first-letters - also with variables.
Case Number: 00961679
Also made a SCREENCAST
7 Replies
Thanks Christoph for sharing here and including your case number - I see that Lea passed this along to our QA Team to investigate further as we're not well equipped to support Javascript so they'll be the best ones to track down the issue and then get it fixed as well.
We'll keep you posted here and as a part of your case!
Any update on this?
There has always been a bug in the editor that changing case after having saved once with an error and saving again the script does not save the corrected script.
You should be able to copy the script and delete the trigger and recreate the trigger or delete
the line in the code save and the recreate the line, I expect you typed it incorrectly first time and then fell for of the bug
Thank you Phil.
I guess you are right.
However. As you say the bug has been there before I wonder why it is not fixed yet.
Hopefully it gets fixed soon, although I would love a new editor that checks syntax
Could not agree more.
I would love if JS works in preview and also with AMP.
Hi Christoph,
No update on this issue yet, but I do see the bug report that Lea filed with our team and I've flagged it to check in on based on this forum discussion as well. We'll keep you posted here and as a part of your Support case.