Commit 96ded26a authored by hypsug0's avatar hypsug0
Browse files

fix: unexpected ":"

parent 59f518da
......@@ -143,7 +143,7 @@ const actionButtons = (label, style, icon, url) => {
return a
}
const placeActionButtonGroup = (id, model) => {
const placeActionButtonGroup = (id, model, id_session=null) => {
const btnGroup = document.createElement('div')
// btnGroup.classList.add('btn-group', 'btn-group-xs');
btnGroup.append(
......@@ -170,7 +170,7 @@ const placeActionButtonGroup = (id, model) => {
return btnGroup.outerHTML
}
const sightingActionButtonGroup = (id, model) => {
const sightingActionButtonGroup = (id, model, id_session=null) => {
const btnGroup = document.createElement('div')
// btnGroup.classList.add('btn-group', 'btn-group-xs');
btnGroup.append(
......@@ -180,7 +180,7 @@ const sightingActionButtonGroup = (id, model) => {
'fa-info-circle',
`/${model}/${id}/detail`
),
actionButtons('Modifier', 'info', 'fa-edit', `/${model}/${id}/update`),
actionButtons('Modifier', 'info', 'fa-edit', `session/${id_session}/sighting/edit`),
actionButtons(
'Ajouter une observation détaillée',
'success',
......@@ -655,7 +655,7 @@ const sightingSearchBlock = () => {
},
{
data: (row) => {
return sightingActionButtonGroup(row.id, 'sighting')
return sightingActionButtonGroup(row.id, 'sighting', )
},
width: '100',
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment