mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-10-31 14:17:34 -04:00 
			
		
		
		
	- Set up Elixir for asset management - CSS + JS will be handled via Elixir/Gulp in gulpfile.js - Removed outdates public/js files
		
			
				
	
	
		
			14 lines
		
	
	
		
			494 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			494 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| window.pdfMake = window.pdfMake || {}; window.pdfMake.vfs = {};
 | |
| if(window.ninjaFontVfs)ninjaLoadFontVfs();
 | |
| function ninjaLoadFontVfs(){
 | |
|   jQuery.each(window.ninjaFontVfs, function(font, files){
 | |
|     jQuery.each(files, function(filename, file){
 | |
|       window.pdfMake.vfs['fonts/'+font+'/'+filename] = file;
 | |
|     });
 | |
|   })
 | |
| }
 | |
| function ninjaAddVFSDoc(name,content){
 | |
|   window.pdfMake.vfs['docs/'+name] = content;
 | |
|   if(window.refreshPDF)refreshPDF(true);
 | |
|   jQuery(document).trigger('ninjaVFSDocAdded');
 | |
| } |