Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Titouan Soulard
erp5
Commits
76ed33d3
Commit
76ed33d3
authored
Nov 04, 2024
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_monitoring: fix error catch
parent
ff624fd2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_erp5_page_ojsm_opml_delete_js.js
...m/web_page_module/gadget_erp5_page_ojsm_opml_delete_js.js
+9
-5
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_erp5_page_ojsm_opml_delete_js.xml
.../web_page_module/gadget_erp5_page_ojsm_opml_delete_js.xml
+2
-2
No files found.
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_erp5_page_ojsm_opml_delete_js.js
View file @
76ed33d3
/*global window, rJS */
/*global window, rJS
, jIO
*/
/*jslint nomen: true, indent: 2, maxerr: 3 */
(
function
(
window
,
rJS
)
{
(
function
(
window
,
rJS
,
jIO
)
{
"
use strict
"
;
rJS
(
window
)
...
...
@@ -16,9 +16,13 @@
var
gadget
=
this
;
return
gadget
.
jio_remove
(
options
.
jio_key
)
.
push
(
function
()
{
return
gadget
.
notifySubmitted
({
message
:
"
Document Deleted
"
,
status
:
"
success
"
})
return
gadget
.
notifySubmitted
({
message
:
"
Document Deleted
"
,
status
:
"
success
"
})
;
},
function
(
error
)
{
return
gadget
.
notifySubmitted
({
message
:
error
.
message
,
status
:
"
error
"
})
if
(
error
instanceof
jIO
.
util
.
jIOError
)
{
return
gadget
.
notifySubmitted
({
message
:
error
.
message
,
status
:
"
error
"
});
}
else
{
throw
error
;
}
})
.
push
(
function
()
{
return
gadget
.
redirect
({
command
:
'
change
'
,
options
:
{
...
...
@@ -26,4 +30,4 @@
}});
});
},
{
mutex
:
'
render
'
});
}(
window
,
rJS
));
}(
window
,
rJS
,
jIO
));
\ No newline at end of file
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_erp5_page_ojsm_opml_delete_js.xml
View file @
76ed33d3
...
...
@@ -260,7 +260,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
1020.2
2291.41890.38485
</string>
</value>
<value>
<string>
1020.2
9408.38904.22562
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -280,7 +280,7 @@
</tuple>
<state>
<tuple>
<float>
1730
318970.28
</float>
<float>
1730
743757.03
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
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