mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-06 11:57:16 +08:00
fix hound
This commit is contained in:
parent
e555535dfb
commit
c476faca30
5 changed files with 8 additions and 8 deletions
|
@ -206,7 +206,7 @@ function initProtocolPreviewModal() {
|
|||
modalBody.html(data.html);
|
||||
modalFooter.html(data.footer);
|
||||
modal.modal("show");
|
||||
initHandsOnTable($(document));
|
||||
initHandsOnTable(modalBody);
|
||||
},
|
||||
error: function (error) {
|
||||
// TODO
|
||||
|
|
|
@ -1145,6 +1145,7 @@ ul.content-module-activities {
|
|||
width: 70%;
|
||||
}
|
||||
}
|
||||
|
||||
#protocol-preview-modal .modal-dialog {
|
||||
.modal-body {
|
||||
max-height: 75vh;
|
||||
|
|
|
@ -26,8 +26,7 @@ class ProtocolsController < ApplicationController
|
|||
]
|
||||
before_action :check_view_all_permissions, only: [
|
||||
:index,
|
||||
:datatable,
|
||||
:preview
|
||||
:datatable
|
||||
]
|
||||
before_action :check_unlink_permissions, only: [
|
||||
:unlink,
|
||||
|
|
|
@ -166,10 +166,10 @@ class ProtocolsDatatable < AjaxDatatablesRails::Base
|
|||
end
|
||||
|
||||
def name_html(record)
|
||||
"<a href='#' data-action='protocol-preview'" +
|
||||
" data-url='#{preview_protocol_path(record)}'>" +
|
||||
"#{record.name}" +
|
||||
"</a>"
|
||||
"<a href='#' data-action='protocol-preview'" \
|
||||
"data-url='#{preview_protocol_path(record)}'>" \
|
||||
"#{record.name}" \
|
||||
"</a>"
|
||||
end
|
||||
|
||||
def keywords_html(record)
|
||||
|
|
|
@ -240,7 +240,7 @@ Rails.application.routes.draw do
|
|||
member do
|
||||
get "linked_children", to: "protocols#linked_children"
|
||||
post "linked_children_datatable", to: "protocols#linked_children_datatable"
|
||||
get "preview", to: "protocols#preview"
|
||||
get 'preview', to: 'protocols#preview'
|
||||
patch "metadata", to: "protocols#update_metadata"
|
||||
patch "keywords", to: "protocols#update_keywords"
|
||||
post "clone", to: "protocols#clone"
|
||||
|
|
Loading…
Add table
Reference in a new issue