@@ -834,10 +834,8 @@ function initPullRequestReview() {
834
834
if ( commentCloud . length === 0 ) {
835
835
td . html ( form ) ;
836
836
commentCloud = td . find ( '.comment-code-cloud' ) ;
837
- var id = assingMenuAttributes ( commentCloud . find ( '.menu' ) ) ;
838
- commentCloud . find ( '.tab.segment' ) . each ( function ( i , item ) {
839
- $ ( item ) . attr ( 'data-tab' , $ ( item ) . attr ( 'data-tab' ) + id ) ;
840
- } ) ;
837
+ assingMenuAttributes ( commentCloud . find ( '.menu' ) ) ;
838
+
841
839
td . find ( "input[name='line']" ) . val ( idx ) ;
842
840
td . find ( "input[name='side']" ) . val ( side === "left" ? "previous" :"proposed" ) ;
843
841
td . find ( "input[name='path']" ) . val ( path ) ;
@@ -860,8 +858,6 @@ function assingMenuAttributes(menu) {
860
858
}
861
859
862
860
function initRepositoryCollaboration ( ) {
863
- console . log ( 'initRepositoryCollaboration' ) ;
864
-
865
861
// Change collaborator access mode
866
862
$ ( '.access-mode.menu .item' ) . click ( function ( ) {
867
863
var $menu = $ ( this ) . parent ( ) ;
@@ -1187,8 +1183,6 @@ function initOrganization() {
1187
1183
}
1188
1184
1189
1185
function initUserSettings ( ) {
1190
- console . log ( 'initUserSettings' ) ;
1191
-
1192
1186
// Options
1193
1187
if ( $ ( '.user.settings.profile' ) . length > 0 ) {
1194
1188
$ ( '#username' ) . keyup ( function ( ) {
@@ -2650,8 +2644,7 @@ function cancelCodeComment(btn) {
2650
2644
if ( form . length > 0 && form . hasClass ( 'comment-form' ) ) {
2651
2645
form . addClass ( 'hide' ) ;
2652
2646
form . parent ( ) . find ( 'button.comment-form-reply' ) . show ( ) ;
2653
- } else {
2654
- console . log ( "Hey" ) ;
2647
+ } else {
2655
2648
form . closest ( '.comment-code-cloud' ) . remove ( )
2656
2649
}
2657
2650
}
0 commit comments