mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-17 09:16:10 +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);
|
modalBody.html(data.html);
|
||||||
modalFooter.html(data.footer);
|
modalFooter.html(data.footer);
|
||||||
modal.modal("show");
|
modal.modal("show");
|
||||||
initHandsOnTable($(document));
|
initHandsOnTable(modalBody);
|
||||||
},
|
},
|
||||||
error: function (error) {
|
error: function (error) {
|
||||||
// TODO
|
// TODO
|
||||||
|
|
|
@ -1145,6 +1145,7 @@ ul.content-module-activities {
|
||||||
width: 70%;
|
width: 70%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#protocol-preview-modal .modal-dialog {
|
#protocol-preview-modal .modal-dialog {
|
||||||
.modal-body {
|
.modal-body {
|
||||||
max-height: 75vh;
|
max-height: 75vh;
|
||||||
|
|
|
@ -26,8 +26,7 @@ class ProtocolsController < ApplicationController
|
||||||
]
|
]
|
||||||
before_action :check_view_all_permissions, only: [
|
before_action :check_view_all_permissions, only: [
|
||||||
:index,
|
:index,
|
||||||
:datatable,
|
:datatable
|
||||||
:preview
|
|
||||||
]
|
]
|
||||||
before_action :check_unlink_permissions, only: [
|
before_action :check_unlink_permissions, only: [
|
||||||
:unlink,
|
:unlink,
|
||||||
|
|
|
@ -166,9 +166,9 @@ class ProtocolsDatatable < AjaxDatatablesRails::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def name_html(record)
|
def name_html(record)
|
||||||
"<a href='#' data-action='protocol-preview'" +
|
"<a href='#' data-action='protocol-preview'" \
|
||||||
" data-url='#{preview_protocol_path(record)}'>" +
|
"data-url='#{preview_protocol_path(record)}'>" \
|
||||||
"#{record.name}" +
|
"#{record.name}" \
|
||||||
"</a>"
|
"</a>"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -240,7 +240,7 @@ Rails.application.routes.draw do
|
||||||
member do
|
member do
|
||||||
get "linked_children", to: "protocols#linked_children"
|
get "linked_children", to: "protocols#linked_children"
|
||||||
post "linked_children_datatable", to: "protocols#linked_children_datatable"
|
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 "metadata", to: "protocols#update_metadata"
|
||||||
patch "keywords", to: "protocols#update_keywords"
|
patch "keywords", to: "protocols#update_keywords"
|
||||||
post "clone", to: "protocols#clone"
|
post "clone", to: "protocols#clone"
|
||||||
|
|
Loading…
Add table
Reference in a new issue