File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 25
25
</div>
26
26
<div class="inline ui field right">
27
27
<form class="ui form" id="repo-multiple-form" action="{{$.OrgLink}}/teams/{{$.Team.LowerName | PathEscape}}/repositories" method="post">
28
- <button class="ui red button delete-button right" data-url="{{$.OrgLink}}/teams/{{$.Team.LowerName | PathEscape}}/action/repo/removeall">{{.locale.Tr "remove_all"}}</button>
29
- <button class="ui green button add-all-button right" data-url="{{$.OrgLink}}/teams/{{$.Team.LowerName | PathEscape}}/action/repo/addall">{{.locale.Tr "add_all"}}</button>
28
+ <button class="ui red button delete-button right" data-modal-id="org-team-remove-all-repo" data- url="{{$.OrgLink}}/teams/{{$.Team.LowerName | PathEscape}}/action/repo/removeall">{{.locale.Tr "remove_all"}}</button>
29
+ <button class="ui green button add-all-button right" data-modal-id="org-team-add-all-repo" data- url="{{$.OrgLink}}/teams/{{$.Team.LowerName | PathEscape}}/action/repo/addall">{{.locale.Tr "add_all"}}</button>
30
30
</form>
31
31
</div>
32
32
</div>
64
64
</div>
65
65
</div>
66
66
67
- <div class="ui small basic delete modal">
67
+ <div class="ui small basic delete modal" id="org-team-remove-all-repo" >
68
68
<div class="ui icon header">
69
69
{{svg "octicon-trash"}}
70
70
{{.locale.Tr "org.teams.remove_all_repos_title"}}
75
75
{{template "base/delete_modal_actions" .}}
76
76
</div>
77
77
78
- <div class="ui small basic addall modal">
78
+ <div class="ui small basic addall modal" id="org-team-add-all-repo" >
79
79
<div class="ui icon header">
80
80
{{svg "octicon-globe"}}
81
81
{{.locale.Tr "org.teams.add_all_repos_title"}}
Original file line number Diff line number Diff line change @@ -194,8 +194,8 @@ export function initGlobalLinkActions() {
194
194
const $this = $ ( this ) ;
195
195
const dataArray = $this . data ( ) ;
196
196
let filter = '' ;
197
- if ( $this . data ( ' modal-id') ) {
198
- filter += `#${ $this . data ( ' modal-id') } ` ;
197
+ if ( $this . attr ( 'data- modal-id') ) {
198
+ filter += `#${ $this . attr ( 'data- modal-id') } ` ;
199
199
}
200
200
201
201
const dialog = $ ( `.delete.modal${ filter } ` ) ;
@@ -237,8 +237,8 @@ export function initGlobalLinkActions() {
237
237
e . preventDefault ( ) ;
238
238
const $this = $ ( this ) ;
239
239
let filter = '' ;
240
- if ( $this . attr ( 'id' ) ) {
241
- filter += `#${ $this . attr ( 'id' ) } ` ;
240
+ if ( $this . attr ( 'data-modal- id' ) ) {
241
+ filter += `#${ $this . attr ( 'data-modal- id' ) } ` ;
242
242
}
243
243
244
244
const dialog = $ ( `.addall.modal${ filter } ` ) ;
You can’t perform that action at this time.
0 commit comments