Browse Source

Fix unexpandable accordion not updated

pull/6/head
Menci 6 years ago
parent
commit
2021ad6eaa
  1. 2
      views/submission.ejs

2
views/submission.ejs

@ -294,7 +294,7 @@ const vueApp = new Vue({
$(document).ready(function(){ $('.ui.accordion').accordion({ selector: { trigger: '.title:not(.unexpandable)' } })}); $(document).ready(function(){ $('.ui.accordion').accordion({ selector: { trigger: '.title:not(.unexpandable)' } })});
}, },
updated() { updated() {
$('.ui.accordion').accordion("refresh"); $('.ui.accordion').off().accordion({ selector: { trigger: '.title:not(.unexpandable)' } });
} }
}); });
if (token != null) { if (token != null) {

Loading…
Cancel
Save