summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/milestone_select.js
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-07-25 11:56:41 +0100
committerPhil Hughes <me@iamphill.com>2017-07-25 11:56:41 +0100
commit205090fcfb741884215723281dfb0afb56efbbfb (patch)
treeba1e4ffdeb5757e055dcc862d8d022eb4c48d62d /app/assets/javascripts/milestone_select.js
parente43bda0ebb56991f9f128946fefed375a695eac1 (diff)
downloadgitlab-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.js2
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);