Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- require ({ baseUrl: "/#application.require_js_path#" }, ['project/documents_read','project/documents_edit','plugins/templating/jquery.tmpl.min']);
- define('documents-loader', ['project/documents_read', 'project/documents_edit'], function(){
- new documents_edit.init({
- url: '#application.urlroot#app/components/attachment.cfc?method=updateEdocs',
- save_button: '##save-gcrc',
- cancel_button: '##cancel-gcrc',
- container: '##gcrc-container',
- template: '##gcrc-edit-template',
- form: '##gcrc-form'
- });
- new documents_read.init({
- url: '#application.urlroot#app/components/attachment.cfc?method=getDocumentsAndTypes&type=gcrc',
- ctsi_id: '#url.ctsi_id#',
- edit_button: '##edit-gcrc',
- container: '##gcrc-container',
- template: '##gcrc-view-template'
- });
- /*new documents_edit.init({
- url: '#application.urlroot#app/components/attachment.cfc?method=updateStudyDocs',
- save_button: '##save-study',
- cancel_button: '##cancel-study',
- container: '##study-container',
- template: '##study-edit-template',
- form: '##study-form'
- });*/
- new documents_read.init({
- url: '#application.urlroot#app/components/attachment.cfc?method=getDocumentsAndTypes&type=study',
- ctsi_id: '#url.ctsi_id#',
- edit_button: '##edit-study',
- container: '##study-container',
- template: '##study-view-template'
- });
- });
- </script>
Add Comment
Please, Sign In to add comment