Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_workflow
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenjie.zheng
erp5_workflow
Commits
0d519c88
Commit
0d519c88
authored
Aug 07, 2014
by
Romain Courteaud
🐸
Committed by
Sebastien Robin
Aug 08, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Follow redirection requested by the server.
It is used when creating a new document for example.
parent
3416c357
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
9 deletions
+17
-9
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_dialog_html.xml
...m/web_page_module/rjs_gadget_erp5_pt_form_dialog_html.xml
+3
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_dialog_js.xml
...tem/web_page_module/rjs_gadget_erp5_pt_form_dialog_js.xml
+13
-6
bt5/erp5_web_renderjs_ui/bt/revision
bt5/erp5_web_renderjs_ui/bt/revision
+1
-1
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_dialog_html.xml
View file @
0d519c88
...
...
@@ -115,6 +115,7 @@
<!-- renderjs -->
\n
<script
src=
"RSVP.js"
type=
"text/javascript"
></script>
\n
<script
src=
"renderjs.js"
type=
"text/javascript"
></script>
\n
<script
src=
"URI.js"
type=
"text/javascript"
></script>
\n
\n
<!-- custom script -->
\n
<script
src=
"gadget_global.js"
type=
"text/javascript"
></script>
\n
...
...
@@ -270,7 +271,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
936.43
174.43766.55927
</string>
</value>
<value>
<string>
936.43
469.1612.61132
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -288,7 +289,7 @@
</tuple>
<state>
<tuple>
<float>
1407
143862.28
</float>
<float>
1407
333743.03
</float>
<string>
GMT
</string>
</tuple>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_dialog_js.xml
View file @
0d519c88
...
...
@@ -138,12 +138,14 @@
.declareAcquiredMethod("jio_ajax", "jio_ajax")\n
.declareAcquiredMethod("pleaseRedirectMyHash", "pleaseRedirectMyHash")\n
.declareAcquiredMethod("whoWantToDisplayThisPage", "whoWantToDisplayThisPage")\n
.declareAcquiredMethod("whoWantToDisplayThis", "whoWantToDisplayThis")\n
\n
/////////////////////////////////////////////////////////////////\n
// declared methods\n
/////////////////////////////////////////////////////////////////\n
.declareMethod(\'render\', function (options) {\n
var erp5_document = options.erp5_document,\n
form_options = options.erp5_form || {},\n
form_gadget = this;\n
\n
form_gadget.props.id = erp5_document._id;\n
...
...
@@ -155,8 +157,7 @@
return form_gadget.getDeclaredGadget("erp5_form")\n
\n
.push(function (erp5_form) {\n
var form_options = options.erp5_form || {},\n
title,\n
var title = options.form_definition.title,\n
i,\n
view_list = erp5_document._links.action_workflow || [];\n
\n
...
...
@@ -208,8 +209,14 @@
}\n
});\n
})\n
.push(function (data) {\n
.push(function (evt) {\n
var location = evt.target.getResponseHeader("X-Location");\n
if (location === undefined) {\n
// No redirection, stay on the same document\n
return form_gadget.whoWantToDisplayThisPage({name: "view"});\n
} else {\n
return form_gadget.whoWantToDisplayThis(new URI(location).segment(2));\n
}\n
})\n
.push(function (url) {\n
return form_gadget.pleaseRedirectMyHash(url);\n
...
...
@@ -362,7 +369,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
936.4
3426.13885.45516
</string>
</value>
<value>
<string>
936.4
6364.59346.52275
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -380,7 +387,7 @@
</tuple>
<state>
<tuple>
<float>
1407
158844.1
9
</float>
<float>
1407
335049.6
9
</float>
<string>
GMT
</string>
</tuple>
</state>
...
...
bt5/erp5_web_renderjs_ui/bt/revision
View file @
0d519c88
41
\ No newline at end of file
42
\ No newline at end of file
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