forked from Coded/SIPRP
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							49 lines
						
					
					
						
							1.3 KiB
						
					
					
				
			
		
		
	
	
							49 lines
						
					
					
						
							1.3 KiB
						
					
					
				| window.evoapp = angular.module('evoapp', []);
 | |
| 
 | |
| window.evoapp.config(function($sceProvider) {
 | |
|   // Completely disable SCE.  For demonstration purposes only!
 | |
|   // Do not use in new projects.
 | |
|     $sceProvider.enabled(false);
 | |
| });
 | |
| 
 | |
| //create models namespace
 | |
| window.evoapp.models = {};
 | |
| 
 | |
| $(function(){
 | |
| 
 | |
|     $.fn.modal.defaults.spinner = $.fn.modalmanager.defaults.spinner = 
 | |
|     '<div class="loading-spinner" style="width: 200px; margin-left: -100px;">' +
 | |
|         '<div class="progress progress-striped active">' +
 | |
|             '<div class="progress-bar" style="width: 100%;">Por favor aguarde...</div>' +
 | |
|         '</div>' +
 | |
|     '</div>';
 | |
| 
 | |
|     $('body').modalmanager('loading');
 | |
| 
 | |
|     $('#main-panel').hide();
 | |
|     
 | |
|     //  ---> views-all.html
 | |
|     //  ---> GetViewsHtml.aspx
 | |
|     $.get(window.evoapp.CTXPATH + 'getViews', function( data ) {  
 | |
|     	
 | |
|         var body = $('body');       
 | |
|         var viewCache = $('<div id="view-cache"></div>');
 | |
| 
 | |
|         viewCache.append(data);
 | |
| 
 | |
|         body.attr('ng-controller', 'MainController');
 | |
| 
 | |
|         angular.bootstrap(body, ['evoapp']);
 | |
| 
 | |
|         var scope = angular.element(body).scope();
 | |
| 
 | |
|         scope.$parent.viewCache = viewCache;
 | |
| 
 | |
|         scope.viewCache = viewCache;
 | |
| 
 | |
|         scope.boot();
 | |
|     }); 
 | |
| 
 | |
|     
 | |
| });
 |