diff options
author | Phil Hughes <me@iamphill.com> | 2017-07-25 11:56:41 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-07-25 11:56:41 +0100 |
commit | 205090fcfb741884215723281dfb0afb56efbbfb (patch) | |
tree | ba1e4ffdeb5757e055dcc862d8d022eb4c48d62d /app/assets/javascripts/milestone_select.js | |
parent | e43bda0ebb56991f9f128946fefed375a695eac1 (diff) | |
download | gitlab-ce-205090fcfb741884215723281dfb0afb56efbbfb.tar.gz |
Removed inline JS in shared HAML files
Diffstat (limited to 'app/assets/javascripts/milestone_select.js')
-rw-r--r-- | app/assets/javascripts/milestone_select.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/milestone_select.js b/app/assets/javascripts/milestone_select.js index 9d481d7c003..6756ab0b3aa 100644 --- a/app/assets/javascripts/milestone_select.js +++ b/app/assets/javascripts/milestone_select.js @@ -8,7 +8,7 @@ var _this, $els; if (currentProject != null) { _this = this; - this.currentProject = JSON.parse(currentProject); + this.currentProject = typeof currentProject === 'string' ? JSON.parse(currentProject) : currentProject; } $els = $(els); |