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
[ticket/12982] JS refactoring #2879
Conversation
PHPBB3-12982
The bulk of this is now finished, the rest will be minor stuff. |
I thought the following might be related to this PR. See discussion: https://area51.phpbb.com/phpBB/viewtopic.php?f=84&t=45411&start=30#p266263 We use unescape() (when loading jQuery from the local assets) which is a deprecated function. We could replace it with decodeURI(). |
That's not relevant to this PR.
|
!unset WIP |
Did anyone actually test all this yet? |
Been testing this for a while now. Haven't found any obvious problems. |
dark.fadeOut(phpbb.alertTime, function() { | ||
div.hide(); | ||
$dark.one('click', function(e) { | ||
$confirmDiv.find('.alert_close').unbind('click'); |
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.
Any reason why you are still using unbind() here instead of off()?
PR looks good apart from what I mentioned above. |
FIXED |
e493603
to
cb7e154
Compare
@marc1706 Want to merge this then? If not, who else is capable of reviewing this properly? @nickvergessen ? |
Will review this today |
[ticket/12982] JS refactoring
This broke the timezone select ... |
https://tracker.phpbb.com/browse/PHPBB3-12982
I'm trying to keep opinions out of this PR (I'm not going to be that guy).
I've converted a load of code to the correct coding standards, and basically fixed most JSHint and IDE errors in the JS.
It also contains a few potential bug fixes such as undeclared variables, and in one case, a typo'd variable name—please don't delay this until 3.2 (that would cause horrible merge conflicts, too).