File tree 3 files changed +17
-37
lines changed
templates/user/notification
3 files changed +17
-37
lines changed Original file line number Diff line number Diff line change 35
35
{{$issue := .Issue}}
36
36
{{$repo := .Repository}}
37
37
<tr id="notification_{{.ID}}">
38
- <td class="collapsing gt-pl-4" data-href="{{.Link}}" >
38
+ <td class="collapsing gt-pl-4">
39
39
{{if eq .Status 3}}
40
40
{{svg "octicon-pin" 16 "text blue"}}
41
41
{{else if not $issue}}
58
58
{{end}}
59
59
{{end}}
60
60
</td>
61
- <td class="eleven wide" data-href="{{.Link}}" >
61
+ <td class="eleven wide">
62
62
<a class="item" href="{{.Link}}">
63
63
{{if $issue}}
64
64
#{{$issue.Index}} - {{$issue.Title}}
67
67
{{end}}
68
68
</a>
69
69
</td>
70
- <td data-href="{{$repo.Link}}" >
70
+ <td>
71
71
<a class="item" href="{{$repo.Link}}">{{$repo.FullName}}</a>
72
72
</td>
73
73
<td class="collapsing">
Original file line number Diff line number Diff line change 85
85
padding : 8px 15px ;
86
86
}
87
87
88
- .user .notification .content {
89
- float : left;
90
- margin-left : 7px ;
91
- }
92
-
93
- .user .notification table form {
94
- display : inline-block;
95
- }
96
-
97
- .user .notification table button {
98
- padding : 3px 3px 3px 5px ;
99
- }
100
-
101
- .user .notification table tr {
102
- cursor : pointer;
103
- }
104
-
105
88
.user .button .adopt ,
106
89
.user .button .delete {
107
90
margin-top : -15px ;
147
130
object-fit : contain;
148
131
}
149
132
133
+ .user .notification table button {
134
+ padding : 3px 3px 3px 5px ;
135
+ }
136
+
150
137
# notification_div .tab .segment {
151
138
overflow-x : auto;
152
- padding : 0 ;
153
139
}
154
140
155
- # notification_div .menu .active .item {
141
+ # notification_div .tabular . menu .active .item {
156
142
background : var (--color-box-body );
157
143
}
158
144
159
145
# notification_table {
160
146
border : none;
161
147
}
148
+
149
+ # notification_table tr {
150
+ cursor : default;
151
+ }
152
+
153
+ # notification_table td a {
154
+ width : 100% ;
155
+ display : inline-block;
156
+ }
Original file line number Diff line number Diff line change @@ -134,21 +134,6 @@ export function initGlobalCommon() {
134
134
toggleElem ( $ ( $ ( this ) . data ( 'target' ) ) ) ;
135
135
} ) ;
136
136
137
- // make table <tr> and <td> elements clickable like a link
138
- $ ( 'tr[data-href], td[data-href]' ) . on ( 'click' , function ( e ) {
139
- const href = $ ( this ) . data ( 'href' ) ;
140
- if ( e . target . nodeName === 'A' ) {
141
- // if a user clicks on <a>, then the <tr> or <td> should not act as a link.
142
- return ;
143
- }
144
- if ( e . ctrlKey || e . metaKey ) {
145
- // ctrl+click or meta+click opens a new window in modern browsers
146
- window . open ( href ) ;
147
- } else {
148
- window . location = href ;
149
- }
150
- } ) ;
151
-
152
137
// prevent multiple form submissions on forms containing .loading-button
153
138
document . addEventListener ( 'submit' , ( e ) => {
154
139
const btn = e . target . querySelector ( '.loading-button' ) ;
You can’t perform that action at this time.
0 commit comments