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

Bigfix/paymill js #28

Merged
merged 2 commits into from
Apr 17, 2015
Merged

Bigfix/paymill js #28

merged 2 commits into from
Apr 17, 2015

Conversation

sfblaauw
Copy link
Contributor

No description provided.

@mmoreram
Copy link
Contributor

ping @tonipinel Could you please check this feature? :)

EDIT: Already merged ;)

Thanks @sfblaauw

if (oPaymill.bOkNumber !== true) {
var oLiNumber = document.createElement('li');
oLiNumber.innerText = 'Card number invalid';
oLiNumber.innerHTML = 'Card number invalid';
Copy link
Contributor

Choose a reason for hiding this comment

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

You don't need to use innerHTML here because your content is not an HTML content

Copy link
Contributor Author

Choose a reason for hiding this comment

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

innerText do not print anything

Copy link
Contributor

Choose a reason for hiding this comment

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

my bad: it appears innerText is not a standard, this may explain why it's not printed (http://stackoverflow.com/a/19032002)

I suggest the use of textContent property :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oLiNumber.value? this will print <li value="0"></li>

Copy link
Contributor

Choose a reason for hiding this comment

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

sorry @sfblaauw , updated my answer :D

@sfblaauw
Copy link
Contributor Author

@mickaelandrieu changed!

@mickaelandrieu
Copy link
Contributor

@sfblaauw can you squash your commits ? Thank you for your fix :)

@sfblaauw
Copy link
Contributor Author

Done!

mickaelandrieu added a commit that referenced this pull request Apr 17, 2015
@mickaelandrieu mickaelandrieu merged commit 8e0cbe1 into master Apr 17, 2015
@mickaelandrieu
Copy link
Contributor

@sfblaauw good job 👍

@mickaelandrieu mickaelandrieu deleted the bigfix/paymill-js branch April 17, 2015 16:00
@mmoreram
Copy link
Contributor

@sfblaauw 👍

@sfblaauw
Copy link
Contributor Author

Thanks 🎉

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.

None yet

3 participants