-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix line endings in theme's JS files #7607
Conversation
mcdado
commented
Feb 24, 2017
•
edited
Loading
edited
Questions | Answers |
---|---|
Branch? | 1.6.1.x |
Description? | Fix line endings in JavaScript theme files. |
Type? | bug fix |
Category? | FO |
BC breaks? | no |
Deprecations? | no |
How to test? | Check out the files and verify the line endings, they should be LF instead of CRLF. |
Thanks! Are you sure your indentation is correct? 'cos I need to point to https://github.com/PrestaShop/PrestaShop/pull/7607/files?w=1 :) |
Well… I didn't want to put too many style corrections into this PR. All That said, I had to correct the line endings because I have a big heart! ❤️ 😉 |
I would gladly make a PR with an |
Hello @mcdado, What error are you trying to fix ? I tried to reproduce the initial problem but unfortunately nothing is reported in the console on this page. |
Line 410 of Actually, now that I think of it, I didn't test it against current default theme, since we have a theme that is based on it, I thought it couldn't be too different since we generally pull upstream patches. Can you try to force running |
Hello, On the default theme, the function bindGrid() handles properly the non-existing storage and returns before executing anything related to the view: function bindGrid()
{
console.log('bindGrid() called');
var storage = false;
if (typeof(getStorageAvailable) !== 'undefined') {
storage = getStorageAvailable();
}
if (!storage) {
return; // <- returns here
} |
That's right, it was already implemented… 6528fe9 Well, then let me amend my commits and do just the line ending fixes |
2519140
to
676e80c
Compare
Okay I deleted the extra change, now it's only linde endings. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All right, this PR can now be merged.
676e80c
to
3af1bd2
Compare
Rebased on top of |
Cheers David! 🎉 |
Thank you @mcdado |