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

Changed the creation of the update notification link #309

Merged
merged 2 commits into from
Jul 5, 2016
Merged

Changed the creation of the update notification link #309

merged 2 commits into from
Jul 5, 2016

Conversation

Faldon
Copy link
Contributor

@Faldon Faldon commented Jul 4, 2016

Instead of chaining the DOM manipulation commands, create an object from a concatenated string.
Solves #273

@mention-bot
Copy link

@Faldon, thanks for your PR! By analyzing the annotation information on this pull request, we identified @jancborchardt, @MorrisJobke and @LukasReschke to be potential reviewers

@@ -18,7 +18,7 @@ $(document).ready(function(){
version = oc_updateState.updateVersion,
docLink = oc_updateState.updateLink,
text = t('core', '{version} is available. Get more information on how to update.', {version: version}),
element = $('<a>').attr('href', docLink).attr('target','_blank').text(text);
element = $('<a href="'+docLink+'" target="_blank">'+text+'</a>');
Copy link
Member

Choose a reason for hiding this comment

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

Please make sure to have text and docLink escaped in this cases then using escapeHTML.

@MorrisJobke
Copy link
Member

Tested and works 👍

Code looks good

@MorrisJobke MorrisJobke added this to the Nextcloud Next milestone Jul 5, 2016
@MorrisJobke MorrisJobke added the 3. to review Waiting for reviews label Jul 5, 2016
@schiessle
Copy link
Member

looks good 👍

@schiessle schiessle merged commit dc5034f into nextcloud:master Jul 5, 2016
@jancborchardt
Copy link
Member

Great stuff @Faldon, will add you to the organization and the Javascript team. :)

@Faldon
Copy link
Contributor Author

Faldon commented Jul 5, 2016

@jancborchardt With pleasure. I finally thought, it's time to contribute back. That's the point in OSS.

@jancborchardt
Copy link
Member

@Faldon welcome to Nextcloud then! :) Very much looking forward to future contributions.

@LukasReschke
Copy link
Member

🚀 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants