Fix bug with protocol preview modal not working in protocol repo

Closes SCI-1323.
This commit is contained in:
Luka Murn 2017-06-05 17:10:13 +02:00
parent a9bd86352d
commit 1712fc0611
2 changed files with 3 additions and 2 deletions

View file

@ -209,9 +209,9 @@ function initProtocolPreviewModal() {
modalTitle.html(data.title);
modalBody.html(data.html);
modalFooter.html(data.footer);
initHandsOnTable(modalBody);
window.initHandsOnTable(modalBody);
modal.modal("show");
initHandsOnTable(modalBody);
window.initHandsOnTable(modalBody);
initPreviewModal();
},
error: function (error) {

View file

@ -673,4 +673,5 @@
});
})
window.initHandsOnTable = initHandsOnTable;
})(window);