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
c63a256a
Commit
c63a256a
authored
May 06, 2022
by
François C.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use $.notify instead of alert to display success message after shelf change
parent
e7103678
Pipeline
#2199
failed with stage
in 1 minute 29 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletions
+8
-1
shelf_inventory.js
shelfs/static/js/shelf_inventory.js
+7
-1
shelf_inventory.html
templates/shelfs/shelf_inventory.html
+1
-0
No files found.
shelfs/static/js/shelf_inventory.js
View file @
c63a256a
...
...
@@ -462,7 +462,13 @@ async function open_change_shelf_modal() {
message
+=
(
data
.
length
-
update_result
.
length
)
+
" produit(s) non déplacé(s)."
;
//TODO: display which products changes were in error
}
alert
(
message
);
$
.
notify
(
message
,
{
globalPosition
:
"top right"
,
className
:
"info"
}
);
}
}
make_change
();
...
...
templates/shelfs/shelf_inventory.html
View file @
c63a256a
...
...
@@ -11,6 +11,7 @@
<script
type=
"text/javascript"
src=
"{% static 'js/datatables/jquery.dataTables.min.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/datatables/dataTables.plugins.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/jquery.pos.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/notify.min.js' %}?v="
></script>
{% endblock %}
{% block content %}
...
...
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