diff options
author | Jacob Schatz <jacobschatz@Jacobs-MBP.fios-router.home> | 2016-03-25 15:00:16 +0300 |
---|---|---|
committer | Jacob Schatz <jacobschatz@Jacobs-MBP.fios-router.home> | 2016-03-25 16:54:05 +0300 |
commit | 1cc6d786e4bfd22b5c94dae516ef04c0f32cb379 (patch) | |
tree | 8b3d8d2c4896d37965e81c0834f1c1493678a161 /app/assets/javascripts/labels_select.js.coffee | |
parent | 53a831124e4e704cc494511ed4d04969a223db4e (diff) |
Fix minor code style issues
Fix underscore template error.
Fix `=` spacing
Diffstat (limited to 'app/assets/javascripts/labels_select.js.coffee')
-rw-r--r-- | app/assets/javascripts/labels_select.js.coffee | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/app/assets/javascripts/labels_select.js.coffee b/app/assets/javascripts/labels_select.js.coffee index d77490cae4e..16cbffa6818 100644 --- a/app/assets/javascripts/labels_select.js.coffee +++ b/app/assets/javascripts/labels_select.js.coffee @@ -32,10 +32,8 @@ class @LabelsSelect if issueUpdateURL labelHTMLTemplate = _.template( '<% _.each(labels, function(label){ %> - <a href=" - #{["",issueURLSplit[1], issueURLSplit[2],""].join("/")} - issues?label_name=<%= label.title %>"> - <span class="label color-label" style="background-color: <%= label.color %>; color: #FFFFFF"> + <a href="<%= ["",issueURLSplit[1], issueURLSplit[2],""].join("/") %>issues?label_name=<%= label.title %>"> + <span class="label color-label" style="background-color: <%= label.color %>;"> <%= label.title %> </span> </a> @@ -152,6 +150,7 @@ class @LabelsSelect ).done (data) -> $loading.fadeOut() $selectbox.hide() + data.issueURLSplit = issueURLSplit if not data.labels.length template = labelNoneHTMLTemplate() else |