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
Amer
erp5
Commits
74e549c7
Commit
74e549c7
authored
Apr 25, 2019
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs: get action_type from appcache storage instead of url parameter
parent
570c4df1
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
15 additions
and
15 deletions
+15
-15
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_common_utils_js.js
...teItem/web_page_module/gadget_officejs_common_utils_js.js
+4
-1
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_common_utils_js.xml
...eItem/web_page_module/gadget_officejs_common_utils_js.xml
+2
-2
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_erp5_page_post_list_js.js
...web_page_module/gadget_officejs_erp5_page_post_list_js.js
+0
-1
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_erp5_page_post_list_js.xml
...eb_page_module/gadget_officejs_erp5_page_post_list_js.xml
+2
-2
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_action_offline_js.js
...web_page_module/gadget_officejs_page_action_offline_js.js
+0
-1
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_action_offline_js.xml
...eb_page_module/gadget_officejs_page_action_offline_js.xml
+2
-2
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_handle_action_js.js
.../web_page_module/gadget_officejs_page_handle_action_js.js
+3
-4
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_handle_action_js.xml
...web_page_module/gadget_officejs_page_handle_action_js.xml
+2
-2
No files found.
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_common_utils_js.js
View file @
74e549c7
...
@@ -46,7 +46,8 @@
...
@@ -46,7 +46,8 @@
.
declareMethod
(
"
getFormDefinition
"
,
function
(
portal_type
,
action_reference
)
{
.
declareMethod
(
"
getFormDefinition
"
,
function
(
portal_type
,
action_reference
)
{
var
gadget
=
this
,
var
gadget
=
this
,
parent
=
"
portal_types/
"
+
portal_type
,
parent
=
"
portal_types/
"
+
portal_type
,
query
=
'
portal_type: "Action Information" AND reference: "
'
+
action_reference
+
'
" AND parent_relative_url: "
'
+
parent
+
'
"
'
;
query
=
'
portal_type: "Action Information" AND reference: "
'
+
action_reference
+
'
" AND parent_relative_url: "
'
+
parent
+
'
"
'
,
action_type
;
return
gadget
.
jio_allDocs
({
query
:
query
})
return
gadget
.
jio_allDocs
({
query
:
query
})
.
push
(
function
(
data
)
{
.
push
(
function
(
data
)
{
if
(
data
.
data
.
rows
.
length
===
0
)
{
if
(
data
.
data
.
rows
.
length
===
0
)
{
...
@@ -55,9 +56,11 @@
...
@@ -55,9 +56,11 @@
return
gadget
.
jio_get
(
data
.
data
.
rows
[
0
].
id
);
return
gadget
.
jio_get
(
data
.
data
.
rows
[
0
].
id
);
})
})
.
push
(
function
(
action_result
)
{
.
push
(
function
(
action_result
)
{
action_type
=
action_result
.
action_type
;
return
gadget
.
jio_get
(
action_result
.
action
);
return
gadget
.
jio_get
(
action_result
.
action
);
})
})
.
push
(
function
(
form_result
)
{
.
push
(
function
(
form_result
)
{
form_result
.
form_definition
.
action_type
=
action_type
;
return
form_result
.
form_definition
;
return
form_result
.
form_definition
;
});
});
});
});
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_common_utils_js.xml
View file @
74e549c7
...
@@ -269,7 +269,7 @@
...
@@ -269,7 +269,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
975.1
6238.52027.41796
</string>
</value>
<value>
<string>
975.1
7658.62401.59067
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -287,7 +287,7 @@
...
@@ -287,7 +287,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1556
116738.19
</float>
<float>
1556
202022.57
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_erp5_page_post_list_js.js
View file @
74e549c7
...
@@ -24,7 +24,6 @@
...
@@ -24,7 +24,6 @@
action_info
=
{
action_info
=
{
page
:
"
handle_action
"
,
page
:
"
handle_action
"
,
action
:
"
new
"
,
action
:
"
new
"
,
action_type
:
"
object_jio_js_script
"
,
portal_type
:
"
HTML Post
"
,
portal_type
:
"
HTML Post
"
,
parent_portal_type
:
"
Post Module
"
,
parent_portal_type
:
"
Post Module
"
,
my_source_reference
:
fake_thread_uid
my_source_reference
:
fake_thread_uid
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_erp5_page_post_list_js.xml
View file @
74e549c7
...
@@ -269,7 +269,7 @@
...
@@ -269,7 +269,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
975.
4587.35735.7611
</string>
</value>
<value>
<string>
975.
17663.19549.38007
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -287,7 +287,7 @@
...
@@ -287,7 +287,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
155
5417799.99
</float>
<float>
155
6202309.43
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_action_offline_js.js
View file @
74e549c7
...
@@ -87,7 +87,6 @@
...
@@ -87,7 +87,6 @@
action_settings
=
{
action_settings
=
{
page
:
page
,
page
:
page
,
action
:
action_doc
.
reference
,
action
:
action_doc
.
reference
,
action_type
:
action_doc
.
action_type
,
parent_portal_type
:
portal_type
,
parent_portal_type
:
portal_type
,
portal_type
:
portal_type
portal_type
:
portal_type
};
};
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_action_offline_js.xml
View file @
74e549c7
...
@@ -228,7 +228,7 @@
...
@@ -228,7 +228,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
975.
4589.24119.4739
4
</string>
</value>
<value>
<string>
975.
17662.57964.3063
4
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -246,7 +246,7 @@
...
@@ -246,7 +246,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
155
5685607.37
</float>
<float>
155
6202301.34
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_handle_action_js.js
View file @
74e549c7
...
@@ -33,7 +33,6 @@
...
@@ -33,7 +33,6 @@
.
push
(
function
()
{
.
push
(
function
()
{
return
RSVP
.
all
([
return
RSVP
.
all
([
gadget
.
getUrlParameter
(
"
action
"
),
gadget
.
getUrlParameter
(
"
action
"
),
gadget
.
getUrlParameter
(
"
action_type
"
),
gadget
.
getUrlParameter
(
"
parent_portal_type
"
),
gadget
.
getUrlParameter
(
"
parent_portal_type
"
),
gadget
.
getSetting
(
'
parent_portal_type
'
),
gadget
.
getSetting
(
'
parent_portal_type
'
),
gadget
.
declareGadget
(
common_utils_gadget_url
)
gadget
.
declareGadget
(
common_utils_gadget_url
)
...
@@ -41,11 +40,11 @@
...
@@ -41,11 +40,11 @@
})
})
.
push
(
function
(
result
)
{
.
push
(
function
(
result
)
{
action_reference
=
result
[
0
];
action_reference
=
result
[
0
];
action_type
=
result
[
1
];
parent_portal_type
=
result
[
1
]
||
result
[
2
];
parent_portal_type
=
result
[
2
]
||
result
[
3
];
gadget_utils
=
result
[
3
];
gadget_utils
=
result
[
4
];
return
gadget_utils
.
getFormDefinition
(
parent_portal_type
,
action_reference
)
return
gadget_utils
.
getFormDefinition
(
parent_portal_type
,
action_reference
)
.
push
(
function
(
form_definition
)
{
.
push
(
function
(
form_definition
)
{
action_type
=
form_definition
.
action_type
;
if
(
action_type
===
"
object_jio_js_script
"
)
{
if
(
action_type
===
"
object_jio_js_script
"
)
{
if
(
form_definition
.
fields_raw_properties
.
hasOwnProperty
(
"
gadget_field_action_js_script
"
))
{
if
(
form_definition
.
fields_raw_properties
.
hasOwnProperty
(
"
gadget_field_action_js_script
"
))
{
action_gadget_url
=
form_definition
.
fields_raw_properties
.
gadget_field_action_js_script
.
values
.
gadget_url
;
action_gadget_url
=
form_definition
.
fields_raw_properties
.
gadget_field_action_js_script
.
values
.
gadget_url
;
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_handle_action_js.xml
View file @
74e549c7
...
@@ -269,7 +269,7 @@
...
@@ -269,7 +269,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
975.1
6237.2302.57053
</string>
</value>
<value>
<string>
975.1
7664.59173.20292
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -287,7 +287,7 @@
...
@@ -287,7 +287,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1556
116639.92
</float>
<float>
1556
202915.67
</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