mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-20 14:45:56 +08:00
Merge pull request #6247 from aignatov-bio/ai-sci-9260-fix-wopi
Fix wopi and pdf preview [SCI-9260]
This commit is contained in:
commit
5626bdef4b
|
@ -252,7 +252,7 @@ class AssetsController < ApplicationController
|
|||
|
||||
edit_url = edit_asset_url(step_asset.asset_id)
|
||||
elsif params[:element_type] == 'Result'
|
||||
my_module = MyModule.find(params[:element_id].to_i)
|
||||
my_module = Result.find(params[:element_id].to_i).my_module
|
||||
render_403 and return unless can_manage_my_module?(my_module)
|
||||
|
||||
# First create result and then the asset
|
||||
|
|
|
@ -29,5 +29,6 @@
|
|||
<%= javascript_include_tag "handsontable.full" %>
|
||||
<%= render partial: "shared/formulas_libraries" %>
|
||||
<%= render 'shared/tiny_mce_packs' %>
|
||||
<%= javascript_include_tag 'pdf_js' %>
|
||||
<%= stylesheet_link_tag 'pdf_js_styles' %>
|
||||
<%= javascript_include_tag 'vue_results' %>
|
||||
|
||||
|
|
Loading…
Reference in a new issue