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
Labels
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
fc1f010b
Commit
fc1f010b
authored
Apr 07, 2022
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_renderjs_ui: show submit error in console
parent
d02269e0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_form_js.js
...plateItem/web_page_module/rjs_gadget_erp5_page_form_js.js
+4
-4
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_form_js.xml
...lateItem/web_page_module/rjs_gadget_erp5_page_form_js.xml
+2
-2
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_form_js.js
View file @
fc1f010b
/*global window, document, rJS, URI, RSVP, jIO, Blob, URL, asBoolean, ensureArray */
/*global window, document, rJS, URI, RSVP, jIO, Blob, URL, asBoolean, ensureArray
, console
*/
/*jslint nomen: true, indent: 2, maxerr: 3 */
/*jslint nomen: true, indent: 2, maxerr: 3 */
/**
/**
Page Form is a top-level gadget (a "Page") taking care of rendering form
Page Form is a top-level gadget (a "Page") taking care of rendering form
and handling data send&receive.
and handling data send&receive.
*/
*/
(
function
(
window
,
document
,
rJS
,
URI
,
RSVP
,
jIO
,
Blob
,
URL
,
asBoolean
,
ensureArray
)
{
(
function
(
window
,
document
,
rJS
,
URI
,
RSVP
,
jIO
,
Blob
,
URL
,
asBoolean
,
ensureArray
,
console
)
{
"
use strict
"
;
"
use strict
"
;
/*jslint regexp: true*/
/*jslint regexp: true*/
...
@@ -515,7 +515,7 @@ and handling data send&receive.
...
@@ -515,7 +515,7 @@ and handling data send&receive.
.
push
(
null
,
function
(
error
)
{
.
push
(
null
,
function
(
error
)
{
/** Fail branch of the JIO call. */
/** Fail branch of the JIO call. */
var
error_text
=
'
Encountered an unknown error. Try to resubmit.
'
;
var
error_text
=
'
Encountered an unknown error. Try to resubmit.
'
;
console
.
warn
(
error_text
,
error
);
if
(
error
instanceof
RSVP
.
CancellationError
)
{
if
(
error
instanceof
RSVP
.
CancellationError
)
{
// CancellationError is thrown on "redirect" to cancel any pending
// CancellationError is thrown on "redirect" to cancel any pending
// promises. Since it is not a failure we rethrow.
// promises. Since it is not a failure we rethrow.
...
@@ -666,4 +666,4 @@ and handling data send&receive.
...
@@ -666,4 +666,4 @@ and handling data send&receive.
});
});
}(
window
,
document
,
rJS
,
URI
,
RSVP
,
jIO
,
Blob
,
URL
,
asBoolean
,
ensureArray
));
}(
window
,
document
,
rJS
,
URI
,
RSVP
,
jIO
,
Blob
,
URL
,
asBoolean
,
ensureArray
,
console
));
\ No newline at end of file
\ No newline at end of file
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_form_js.xml
View file @
fc1f010b
...
@@ -234,7 +234,7 @@
...
@@ -234,7 +234,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
99
1.63595.43060.43997
</string>
</value>
<value>
<string>
99
9.25844.45625.48025
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -252,7 +252,7 @@
...
@@ -252,7 +252,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
16
20724931.09
</float>
<float>
16
49336938.64
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</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