mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-09 14:46:47 +08:00
Fixed sample editing in samples table. [SCI-914]
This commit is contained in:
parent
1793e2a8f4
commit
5d65627808
2 changed files with 4 additions and 2 deletions
|
@ -339,7 +339,7 @@ function onClickEdit() {
|
||||||
saveAction = "update";
|
saveAction = "update";
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: rowData["sampleInfoUrl"],
|
url: rowData["sampleEditUrl"],
|
||||||
type: "GET",
|
type: "GET",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
|
|
|
@ -115,6 +115,8 @@ class SampleDatatable < AjaxDatatablesRails::Base
|
||||||
'6': record.user.full_name,
|
'6': record.user.full_name,
|
||||||
'sampleInfoUrl':
|
'sampleInfoUrl':
|
||||||
Rails.application.routes.url_helpers.sample_path(record.id),
|
Rails.application.routes.url_helpers.sample_path(record.id),
|
||||||
|
'sampleEditUrl':
|
||||||
|
Rails.application.routes.url_helpers.edit_sample_path(record.id),
|
||||||
'sampleUpdateUrl':
|
'sampleUpdateUrl':
|
||||||
Rails.application.routes.url_helpers.sample_path(record.id)
|
Rails.application.routes.url_helpers.sample_path(record.id)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue