Skip to content

Commit

Permalink
Merge pull request #1 from albertoromovalverde/feature/support-for-ad…
Browse files Browse the repository at this point in the history
…ditional-url-parameters

feature/support-for-additional-url-parameters
  • Loading branch information
pacohernandezg authored Jul 26, 2017
2 parents e5e9a0f + 7f10493 commit 8cc3d40
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions puredat-entity.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@
type: String
},

/** Resource additional url parameters. */
additionalUrlParams: {
type: String
},

/** Internal values. */
_values: {
type: Array
Expand Down Expand Up @@ -208,6 +213,8 @@
}
this.$.input.remoteUrl = null;
}

if(this.$.input.remoteUrl != null && this.additionalUrlParams != null) this.$.input.remoteUrl += ((this.$.input.remoteUrl.indexOf("?") >= 0 ? "&" : "?") + this.additionalUrlParams);
}
});
</script>
Expand Down

0 comments on commit 8cc3d40

Please sign in to comment.