diff --git a/app/assets/javascripts/protocols/steps.js.erb b/app/assets/javascripts/protocols/steps.js.erb index 15007647c..bdff14201 100644 --- a/app/assets/javascripts/protocols/steps.js.erb +++ b/app/assets/javascripts/protocols/steps.js.erb @@ -378,7 +378,7 @@ } function initCallBacks() { - applyCreateWopiFileCallback(); + if (typeof(applyCreateWopiFileCallback) === 'function') applyCreateWopiFileCallback(); applyCheckboxCallBack(); applyStepCompletedCallBack(); applyEditCallBack(); diff --git a/app/views/search/index.html.erb b/app/views/search/index.html.erb index 85c4d0349..790b6c573 100644 --- a/app/views/search/index.html.erb +++ b/app/views/search/index.html.erb @@ -1,5 +1,5 @@ <% provide(:head_title, t("search.index.head_title")) %> - +<%= render partial: "protocols/index/protocol_preview_modal.html.erb" %>