Commit 361e9787 authored by Sven Franck's avatar Sven Franck

erp5_officejs: correct error name to correctly catch errors

parent 1077744f
......@@ -172,7 +172,7 @@
context = this;\n
if (json.type === "jio_response") {\n
context.state_parameter_dict.message_dict[json.id].resolve(json.result);\n
} else if (json.type === "jio_error") {\n
} else if (json.type === "error") {\n
context.state_parameter_dict.message_dict[json.id].reject(json.result);\n
}\n
// Drop all other kind of messages\n
......@@ -383,7 +383,7 @@
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>romain</string> </value>
<value> <string>zope</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
......@@ -397,7 +397,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>945.33670.33244.37512</string> </value>
<value> <string>945.38227.6078.28825</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -415,7 +415,7 @@
</tuple>
<state>
<tuple>
<float>1441357867.08</float>
<float>1441706238.46</float>
<string>GMT</string>
</tuple>
</state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment