Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
third-party
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cooperatic-foodcoops
third-party
Commits
2e716e45
Commit
2e716e45
authored
Sep 22, 2023
by
Yvon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add btn and trigger visibility and computation of shelf_value on click
parent
97a032e3
Pipeline
#2978
failed with stage
in 1 minute 5 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletions
+10
-1
shelfs_index.js
shelfs/static/js/shelfs_index.js
+6
-1
index.html
templates/shelfs/index.html
+4
-0
No files found.
shelfs/static/js/shelfs_index.js
View file @
2e716e45
...
...
@@ -82,6 +82,8 @@ function init_datatable() {
{
data
:
"shelf_value"
,
title
:
"Valeur théorique du rayon"
,
visible
:
false
,
name
:
"shelf_value"
,
render
:
function
(
data
,
type
)
{
if
(
type
==
"sort"
||
type
==
'type'
)
return
data
;
...
...
@@ -324,7 +326,6 @@ $(document).ready(function() {
}
shelfs_table
=
init_datatable
();
get_shelfs_extra_data
();
$
(
document
).
on
(
'click'
,
'button.do_shelf_inventory'
,
go_to_shelf_inventory
);
$
(
document
).
on
(
'click'
,
'tbody td .delete_ongoing_inv_icon'
,
pre_delete_ongoing_inventory
);
...
...
@@ -337,4 +338,8 @@ $(document).ready(function() {
.
draw
();
});
$
(
document
).
on
(
'click'
,
'#show_and_compute_shelf_value'
,
function
()
{
shelfs_table
.
column
(
'shelf_value:name'
).
visible
(
true
);
get_shelfs_extra_data
();
});
});
templates/shelfs/index.html
View file @
2e716e45
...
...
@@ -39,6 +39,10 @@
</div>
</div>
<div
id=
"footer_btn"
>
<button
id=
'show_and_compute_shelf_value'
class=
'btn--primary'
>
Afficher et calculer la valeur théorique des rayons
</button>
</div>
<div
id=
"templates"
style=
"display:none;"
>
<div
id=
"modal_delete_ongoing_inv"
>
<h4>
Attention !
</h4>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment