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
1
Issues
1
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
Roque
erp5
Commits
48e4daf7
Commit
48e4daf7
authored
Apr 17, 2019
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs_connector: action js code in form gadgetfield
parent
28ede9e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
bt5/erp5_officejs_connector/SkinTemplateItem/portal_skins/erp5_officejs_jio_connector/HTMLPost_viewReplyDialog/gadget_field_action_js_script.xml
...TMLPost_viewReplyDialog/gadget_field_action_js_script.xml
+2
-2
No files found.
bt5/erp5_officejs_connector/SkinTemplateItem/portal_skins/erp5_officejs_jio_connector/HTMLPost_viewReplyDialog/gadget_field_action_js_script.xml
View file @
48e4daf7
...
...
@@ -224,8 +224,8 @@
<value>
<list>
<tuple>
<string>
console.log("[from REPLY gadget field] this is the render form code"); var parent_document, child_document, child_jio_key; return gadget.jio_get(options.jio_key) .push(function (result) { parent_document = result; return gadget_utils.getFormDefinition(parent_document.portal_type, action_reference); }) .push(function (result) { var title = parent_document.title; form_definition = result; if (!title.startsWith("Re: ")) { title = "Re: " + parent_document.title; } return gadget.changeState({ doc: {title: title}, parent_document: parent_document, child_gadget_url: child_gadget_url, form_definition: form_definition, view: action_reference, editable: true,has_more_views: false,has_more_actions: false,is_form_list: false});
});
</string>
<string>
console.log("[from REPLY gadget field] this is the submit form code"
);
</string>
<string>
return gadget.jio_get(options.jio_key).push(function(result) {parent_document = result; var title = parent_document.title; if (!title.startsWith(\'Re: \')) { title = \'Re: \' + parent_document.title; } return gadget.changeState({ doc: { title: title }, submit_code: submit_code, parent_document: parent_document, child_gadget_url: child_gadget_url, form_definition: form_definition, view: action_reference, editable: true, has_more_views: false, has_more_actions: false, is_form_list: false });
});
</string>
<string>
var document = { my_title: gadget.state.doc.title, portal_type: gadget.state.parent_document.portal_type, parent_relative_url: gadget.state.parent_document.parent_relative_url, my_source_reference: gadget.state.parent_document.source_reference }, property; for (property in content_dict) { if (content_dict.hasOwnProperty(property)) { document[\'my_\' + property] = content_dict[property]; } } return gadget_utils.createDocument(document).push(function(id) { jio_key = id; return gadget.notifySubmitting(); }).push(function() { return gadget.notifySubmitted({ message: \'Data Updated\', status: \'success\' }); }).push(function() { return gadget.redirect({ command: \'display\', options: { jio_key: jio_key, editable: true } }); }
);
</string>
</tuple>
</list>
</value>
...
...
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