Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ayush Tiwari
erp5
Commits
894e2d5c
Commit
894e2d5c
authored
Nov 10, 2017
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bt5_config: Input and output data for the gadget field should be same
parent
4ebad852
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
10 deletions
+15
-10
product/ERP5/bootstrap/erp5_business_package/SkinTemplateItem/portal_skins/erp5_business_package/BusinessManager_buildFromDialogParameterJSON.py
...s_package/BusinessManager_buildFromDialogParameterJSON.py
+2
-1
product/ERP5/bootstrap/erp5_business_package/SkinTemplateItem/portal_skins/erp5_business_package/BusinessManager_getBuildingDialogParameterJSON.py
...package/BusinessManager_getBuildingDialogParameterJSON.py
+1
-3
product/ERP5/bootstrap/erp5_business_package/SkinTemplateItem/portal_skins/erp5_business_package/business_manager_select_action_gadget.js.js
...iness_package/business_manager_select_action_gadget.js.js
+12
-6
No files found.
product/ERP5/bootstrap/erp5_business_package/SkinTemplateItem/portal_skins/erp5_business_package/BusinessManager_buildFromDialogParameterJSON.py
View file @
894e2d5c
import
json
import
json
# Load the JSON value for item_path_list
# Load the JSON value for item_path_list
item_path_list
=
json
.
loads
(
item_path_list
)
item_path_list
=
[
l
[
0
]
for
l
in
json
.
loads
(
item_path_list
)]
context
.
log
(
item_path_list
)
kwargs
=
{
kwargs
=
{
'checkNeeded'
:
check_needed
,
'checkNeeded'
:
check_needed
,
...
...
product/ERP5/bootstrap/erp5_business_package/SkinTemplateItem/portal_skins/erp5_business_package/BusinessManager_getBuildingDialogParameterJSON.py
View file @
894e2d5c
...
@@ -3,6 +3,4 @@ import json
...
@@ -3,6 +3,4 @@ import json
# Get the path list which has been changed/modified in Business Manager
# Get the path list which has been changed/modified in Business Manager
changed_path_list
=
context
.
getParentValue
().
rebuildBusinessManager
(
context
)[
1
]
changed_path_list
=
context
.
getParentValue
().
rebuildBusinessManager
(
context
)[
1
]
return
json
.
dumps
({
return
json
.
dumps
(
changed_path_list
)
'item_path_list'
:
changed_path_list
,
})
product/ERP5/bootstrap/erp5_business_package/SkinTemplateItem/portal_skins/erp5_business_package/business_manager_select_action_gadget.js.js
View file @
894e2d5c
...
@@ -86,13 +86,15 @@
...
@@ -86,13 +86,15 @@
rJS
(
window
)
rJS
(
window
)
.
declareMethod
(
'
render
'
,
function
(
options
)
{
.
declareMethod
(
'
render
'
,
function
(
options
)
{
var
parameter_dict
=
JSON
.
parse
(
options
.
value
),
var
item_path_list
=
JSON
.
parse
(
options
.
couscous
),
item_path_list
=
parameter_dict
.
item_path_list
,
html_tree
=
buildTreeHTML
(
'
tree
'
,
convertPathListToTree
(
item_path_list
)),
html_tree
=
buildTreeHTML
(
'
tree
'
,
convertPathListToTree
(
item_path_list
)),
state_dict
=
{
state_dict
=
{
key
:
options
.
key
key
:
options
.
key
,
value
:
options
.
value
,
couscous
:
options
.
couscous
};
};
this
.
item_path_list
=
item_path_list
;
this
.
element
.
innerHTML
=
html_tree
;
this
.
element
.
innerHTML
=
html_tree
;
return
this
.
changeState
(
state_dict
);
return
this
.
changeState
(
state_dict
);
})
})
...
@@ -165,13 +167,17 @@
...
@@ -165,13 +167,17 @@
// Filter all paths except for those 'Unchanged'
// Filter all paths except for those 'Unchanged'
for
(
i
=
0
;
i
<
checkedInputList
.
length
;
++
i
)
{
for
(
i
=
0
;
i
<
checkedInputList
.
length
;
++
i
)
{
nextLabelElement
=
checkedInputList
[
i
].
nextElementSibling
;
nextLabelElement
=
checkedInputList
[
i
].
nextElementSibling
;
var
path_state
=
[];
if
(
nextLabelElement
.
className
!==
"
Unchanged
"
)
{
if
(
nextLabelElement
.
className
!==
"
Unchanged
"
)
{
path_list
.
push
(
nextLabelElement
.
dataset
.
path
);
path_state
.
push
(
nextLabelElement
.
dataset
.
path
);
path_state
.
push
(
nextLabelElement
.
className
);
path_list
.
push
(
path_state
);
}
}
}
}
this
.
state
.
value
=
JSON
.
stringify
(
path_list
);
result
[
this
.
state
.
key
]
=
this
.
state
.
value
;
result
[
this
.
state
.
key
]
=
JSON
.
stringify
(
path_list
);
return
result
return
result
;
});
});
}(
rJS
,
jIO
,
Handlebars
,
RSVP
,
window
));
}(
rJS
,
jIO
,
Handlebars
,
RSVP
,
window
));
\ 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