Skip to content

Commit e523ef3

Browse files
committed
Put back some code that were actually working better
1 parent 292aea4 commit e523ef3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/static/riot/competitions/detail/submission_modal.tag

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@
158158
self.rebuildLogTabs()
159159
self.update()
160160
setTimeout(() => {
161-
$(self.root).find('.ui.top.attached.menu .item').tab()
161+
//$(self.root).find('.ui.top.attached.menu .item').tab()
162+
$('.ui.top.attached.menu .item').tab()
162163
}, 0)
163164
})
164165
})
@@ -202,6 +203,11 @@
202203

203204
CODALAB.events.on('submission_clicked', () => {
204205
self.submission = opts.submission
206+
// reset per-submission state
207+
self.logs = {}
208+
self.logTabs = []
209+
self.activeLogTabId = null
210+
// update
205211
self.update()
206212
self.update_submission_details()
207213
let path = self.submission.admin ? 'admin_downloads' : 'downloads'

0 commit comments

Comments
 (0)