Skip to content

Commit 1c5eaca

Browse files
author
Mike Taylor
committed
Issue #660. Remove various namespace operations.
1 parent d347fce commit 1c5eaca

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

webcompat/static/js/lib/labels.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ issues.LabelsView = Backbone.View.extend({
4141
subTemplate: _.template([
4242
'<% _.each(labels, function(label) { %>',
4343
'<span class="Label Label--badge" style="background-color:#<%=label.color%>">',
44-
'<%= label.name.replace(/(browser|status)-/, "") %>',
44+
'<%= label.name %>',
4545
'</span>',
4646
'<% }); %>'].join('')),
4747
render: function() {
@@ -79,7 +79,7 @@ issues.LabelsView = Backbone.View.extend({
7979
this.$el.find('.LabelEditor-launcher').after(this.labelEditor.render().el);
8080
var toBeChecked = _.intersection(this.getIssueLabels(), this.repoLabels);
8181
_.each(toBeChecked, function(labelName) {
82-
$('[name=' + labelName.replace(/(browser|status)-/, '') + ']').prop('checked', true);
82+
$('[name=' + labelName + ']').prop('checked', true);
8383
});
8484
}
8585
});

webcompat/static/js/lib/models/issue.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@
3232
this.set('stateClass', 'close');
3333
return 'Closed';
3434
}
35-
if (labelsNames.indexOf('status-sitewait') > -1) {
35+
if (labelsNames.indexOf('sitewait') > -1) {
3636
this.set('stateClass', 'sitewait');
3737
return 'Site Contacted';
3838
}
39-
if (labelsNames.indexOf('status-contactready') > -1) {
39+
if (labelsNames.indexOf('contactready') > -1) {
4040
this.set('stateClass', 'ready');
4141
return 'Ready for Outreach';
4242
}
43-
if (labelsNames.indexOf('status-needsdiagnosis') > -1) {
43+
if (labelsNames.indexOf('needsdiagnosis') > -1) {
4444
this.set('stateClass', 'need');
4545
return 'Needs Diagnosis';
4646
}

0 commit comments

Comments
 (0)