Skip to content

Commit 8baff0c

Browse files
committed
Change the modal IDs to modal-{uid} instead of {uid}-modal
1 parent 69acace commit 8baff0c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

js/resources.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,8 @@ function create_showcase_card(project) {
269269
(project.rightColMedia ? $('<a>').attr({
270270
'class': 'mr-3',
271271
'data-toggle': 'modal',
272-
'data-target': `#${project.uid}-modal`,
273-
'href': `#${ project.uid }-modal`
272+
'data-target': `#modal-${project.uid}`,
273+
'href': `#modal-${ project.uid }`
274274
}).append('Video') : null)
275275
).append(
276276
(project.ext ? '<br />' + project.ext : null)
@@ -280,10 +280,10 @@ function create_showcase_card(project) {
280280
(project.rightColMedia ?
281281
$('<div>').attr({
282282
'class': 'modal',
283-
'id': `${ project.uid }-modal`,
283+
'id': `modal-${ project.uid }`,
284284
'tabindex': '-1',
285285
'role': 'dialog',
286-
'aria-labelledby': `${ project.uid }-modalTitle`,
286+
'aria-labelledby': `modalTitle-${ project.uid }`,
287287
'aria-hidden': 'true'
288288
})
289289
.append(
@@ -294,7 +294,7 @@ function create_showcase_card(project) {
294294
/* BEGIN MODAL HEADER */
295295
$('<div>').attr('class', 'modal-header')
296296
.append(
297-
$('<h5>').attr({'class': 'modal-title', 'id': `${ project.uid }-modalTitle`})
297+
$('<h5>').attr({'class': 'modal-title', 'id': `modalTitle-${ project.uid }`})
298298
.append(`Video for "${project.title}"`)
299299
)
300300
.append(
@@ -323,7 +323,7 @@ function create_showcase_card(project) {
323323
.append(
324324
$('<button>').attr({
325325
'type': 'button',
326-
'class': 'btn btn-secondary',
326+
'class': 'btn btn-default',
327327
'data-dismiss': 'modal'
328328
}).append('Close')
329329
)

0 commit comments

Comments
 (0)