Guest User

Untitled

a guest
Feb 20th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script type="text/javascript">
  2.     require ({ baseUrl: "/#application.require_js_path#" }, ['project/documents_read','project/documents_edit','plugins/templating/jquery.tmpl.min']);
  3.  
  4.     define('documents-loader', ['project/documents_read', 'project/documents_edit'], function(){
  5.  
  6.         new documents_edit.init({
  7.             url: '#application.urlroot#app/components/attachment.cfc?method=updateEdocs',
  8.             save_button: '##save-gcrc',
  9.             cancel_button: '##cancel-gcrc',
  10.             container: '##gcrc-container',
  11.             template: '##gcrc-edit-template',
  12.             form: '##gcrc-form'
  13.         });
  14.  
  15.         new documents_read.init({
  16.             url: '#application.urlroot#app/components/attachment.cfc?method=getDocumentsAndTypes&type=gcrc',
  17.             ctsi_id: '#url.ctsi_id#',
  18.             edit_button: '##edit-gcrc',
  19.             container: '##gcrc-container',
  20.             template: '##gcrc-view-template'
  21.  
  22.         });
  23.  
  24.         /*new documents_edit.init({
  25.             url: '#application.urlroot#app/components/attachment.cfc?method=updateStudyDocs',
  26.             save_button: '##save-study',
  27.             cancel_button: '##cancel-study',
  28.             container: '##study-container',
  29.             template: '##study-edit-template',
  30.             form: '##study-form'
  31.         });*/
  32.  
  33.         new documents_read.init({
  34.             url: '#application.urlroot#app/components/attachment.cfc?method=getDocumentsAndTypes&type=study',
  35.             ctsi_id: '#url.ctsi_id#',
  36.             edit_button: '##edit-study',
  37.             container: '##study-container',
  38.             template: '##study-view-template'
  39.  
  40.         });
  41.  
  42.     });
  43. </script>
Add Comment
Please, Sign In to add comment