File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ issues.LabelsView = Backbone.View.extend({
41
41
subTemplate : _ . template ( [
42
42
'<% _.each(labels, function(label) { %>' ,
43
43
'<span class="Label Label--badge" style="background-color:#<%=label.color%>">' ,
44
- '<%= label.name.replace(/(browser|status)-/, "") %>' ,
44
+ '<%= label.name %>' ,
45
45
'</span>' ,
46
46
'<% }); %>' ] . join ( '' ) ) ,
47
47
render : function ( ) {
@@ -79,7 +79,7 @@ issues.LabelsView = Backbone.View.extend({
79
79
this . $el . find ( '.LabelEditor-launcher' ) . after ( this . labelEditor . render ( ) . el ) ;
80
80
var toBeChecked = _ . intersection ( this . getIssueLabels ( ) , this . repoLabels ) ;
81
81
_ . each ( toBeChecked , function ( labelName ) {
82
- $ ( '[name=' + labelName . replace ( / ( b r o w s e r | s t a t u s ) - / , '' ) + ']' ) . prop ( 'checked' , true ) ;
82
+ $ ( '[name=' + labelName + ']' ) . prop ( 'checked' , true ) ;
83
83
} ) ;
84
84
}
85
85
} ) ;
Original file line number Diff line number Diff line change 32
32
this . set ( 'stateClass' , 'close' ) ;
33
33
return 'Closed' ;
34
34
}
35
- if ( labelsNames . indexOf ( 'status- sitewait' ) > - 1 ) {
35
+ if ( labelsNames . indexOf ( 'sitewait' ) > - 1 ) {
36
36
this . set ( 'stateClass' , 'sitewait' ) ;
37
37
return 'Site Contacted' ;
38
38
}
39
- if ( labelsNames . indexOf ( 'status- contactready' ) > - 1 ) {
39
+ if ( labelsNames . indexOf ( 'contactready' ) > - 1 ) {
40
40
this . set ( 'stateClass' , 'ready' ) ;
41
41
return 'Ready for Outreach' ;
42
42
}
43
- if ( labelsNames . indexOf ( 'status- needsdiagnosis' ) > - 1 ) {
43
+ if ( labelsNames . indexOf ( 'needsdiagnosis' ) > - 1 ) {
44
44
this . set ( 'stateClass' , 'need' ) ;
45
45
return 'Needs Diagnosis' ;
46
46
}
You can’t perform that action at this time.
0 commit comments