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

Bugfix article selection #92

Merged
merged 2 commits into from
Mar 7, 2017
Merged

Conversation

trickreich
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets fixes #89
Related issues/PRs --
License MIT
Documentation PR --

What's in this PR?

Fixed article selection overlay.

@@ -153,22 +153,23 @@ define([
this.sandbox.dom.append(this.$el, $element);

// load all for default
this.url = this.options.url;
this.url = this.options.url + '?locale=' + this.options.locale;
Copy link
Member

Choose a reason for hiding this comment

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

the url could already contain a ?. Use following snippet:

var separator = this.options.url.indexOf('?') >= 0 ? '&' : '?';
this.url = this.options.url + separator + 'locale=' + this.options.locale;

Copy link
Member

@wachterjohannes wachterjohannes left a comment

Choose a reason for hiding this comment

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

else ACK

@wachterjohannes wachterjohannes merged commit d663b9a into develop Mar 7, 2017
@wachterjohannes wachterjohannes deleted the bugfix/article-selection branch March 7, 2017 07:36
@wachterjohannes
Copy link
Member

@trickreich please use a fork for next contribution (:

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.

Article-Selection dont handle locale
2 participants