Skip to content
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/10949] Converted AJAX coding standards to new guidelines. #860

Merged
merged 1 commit into from
Jan 8, 2013

Conversation

callumacrae
Copy link
Contributor

Basically, moved parentheses to same line and changed variable names to
camel case.

PHPBB3-10949
@callumacrae
Copy link
Contributor Author

Shouldn't be merged until after #759 has been.

@travisbot
Copy link

This pull request passes (merged d5a788a into 85ea062).

@EXreaction
Copy link
Contributor

@callumacrae Where are these new guidelines? They are not in the coding standards document.

If this is how the standards are supposed to be for JS and you update this PR, I will merge it.

@callumacrae
Copy link
Contributor Author

They're in the 3.1 coding guidelines. This PR is out of date now though

@EXreaction
Copy link
Contributor

I did not see them anywhere in http://area51.phpbb.com/docs/31x/coding-guidelines.html ?

@callumacrae
Copy link
Contributor Author

Dunno. It's in the coding guidelines in the repo: https://github.com/phpbb/phpbb3/blob/develop/phpBB/docs/coding-guidelines.html

On 15 Dec 2012, at 18:56, Nathan Guse notifications@github.com wrote:

I did not see them anywhere in http://area51.phpbb.com/docs/31x/coding-guidelines.html ?


Reply to this email directly or view it on GitHub.

@EXreaction
Copy link
Contributor

I see. If you update this PR I'll review and merge it.

if (typeof callback === 'function')
{
phpbb.ajax_callbacks[id] = callback;
phpbb.add_ajax_callback = function(id, callback) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we also change phpbb.add_ajax_callback to phpbb.addAjaxCallback?

@p p merged commit d5a788a into phpbb:develop Jan 8, 2013
marc1706 added a commit to marc1706/phpbb that referenced this pull request Jan 8, 2013
This typo was added by the PRs phpbb#860 and phpbb#1178. Only the object el exists
and is correct. Due to this the text of links using the alt_text callback
were not modified while executing the callback.

PHPBB3-11313
EXreaction pushed a commit to EXreaction/phpbb3 that referenced this pull request Jan 14, 2013
This typo was added by the PRs phpbb#860 and phpbb#1178. Only the object el exists
and is correct. Due to this the text of links using the alt_text callback
were not modified while executing the callback.

PHPBB3-11313
@callumacrae callumacrae deleted the ticket/10949 branch June 19, 2014 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants