main.js 544 B

12345678910111213141516171819202122232425262728293031323334
  1. function init_plugin_document(){
  2. switch($.urlParam('page')){
  3. default:
  4. break;
  5. }
  6. var urlOptions = $.urlParam('data');
  7. if(urlOptions && urlOptions!=''){
  8. urlOptions = JSON.parse(atob(urlOptions));
  9. }
  10. var doc = new DocumentApi('#document-container',urlOptions);
  11. doc.load();
  12. }
  13. /** SETTINGS */
  14. //Enregistrement des configurations
  15. function document_setting_save(){
  16. $.action({
  17. action : 'document_setting_save',
  18. fields : $('#document-setting-form').toJson()
  19. }, function(r){
  20. $.message('success','Enregistré');
  21. });
  22. }