Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
erp5_rtl_support
Commits
a61949f5
Commit
a61949f5
authored
Aug 24, 2015
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_web_renderjs_ui] Try to raise an error in createSocket method before crashing the gadget
parent
0273cd7d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_websocket_js.xml
...hTemplateItem/web_page_module/rjs_gadget_websocket_js.xml
+15
-7
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_websocket_js.xml
View file @
a61949f5
...
...
@@ -99,7 +99,9 @@
</item>
<item>
<key>
<string>
text_content
</string>
</key>
<value>
<string>
/*jslint indent: 2*/\n
<value>
<string
encoding=
"cdata"
>
<![CDATA[
/*jslint indent: 2*/\n
/*global rJS, window, WebSocket, RSVP*/\n
(function (rJS, window, WebSocket, RSVP) {\n
"use strict";\n
...
...
@@ -162,10 +164,14 @@
}\n
\n
function deferErrorHandler(error) {\n
if ((!this.props.socket_defer.isFulfilled) && (!this.props.socket_defer.isRejected)) {\n
this.props.socket_defer.reject(error);\n
} else {\n
enqueueDefer(this, function () {\n
throw error;\n
});\n
}\n
}\n
\n
function deferServerConnection(gadget) {\n
deferServerDisconnection(gadget);\n
...
...
@@ -231,7 +237,9 @@
});\n
\n
}(rJS, window, WebSocket, RSVP));\n
</string>
</value>
]]>
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
...
...
@@ -366,7 +374,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
945.
9453.27218.15667
</string>
</value>
<value>
<string>
945.
18210.63502.24746
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -384,7 +392,7 @@
</tuple>
<state>
<tuple>
<float>
14
39904827.73
</float>
<float>
14
40430322.74
</float>
<string>
GMT
</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