Removed some debuging output. Added workaround for missing console.log function on some browsers (e. g. Firefox).
This commit is contained in:
		
							parent
							
								
									c9786126b8
								
							
						
					
					
						commit
						fdc8b9f65b
					
				
				
				Notes:
				
					subgit
				
				2018-03-07 17:59:05 +01:00 
			
			r743 www/trunk
| @ -100,7 +100,6 @@ function ajaxLoadEvents(stime, etime, eventid, url, target) { | |||||||
| 			}; | 			}; | ||||||
| 		}; | 		}; | ||||||
| 	}; | 	}; | ||||||
| 	//console.log(ajax_url+'?'+$.param(request_data));
 |  | ||||||
| 	if ( etime == '' || !etime  ) { etime = new Date(); }; | 	if ( etime == '' || !etime  ) { etime = new Date(); }; | ||||||
| 	$.ajax({ | 	$.ajax({ | ||||||
| 		type: "GET", | 		type: "GET", | ||||||
|  | |||||||
| @ -145,6 +145,9 @@ var networkText = { | |||||||
| }; | }; | ||||||
| var bochumStation = ['BUG', 'IBBN', 'KERA', 'KARP']; | var bochumStation = ['BUG', 'IBBN', 'KERA', 'KARP']; | ||||||
| 
 | 
 | ||||||
|  | // FIX: firefox has no console
 | ||||||
|  | if (typeof console == "undefined") var console = { log: function() {} }; | ||||||
|  | 
 | ||||||
| /********************************************************************** | /********************************************************************** | ||||||
|  * document ready                                                     * |  * document ready                                                     * | ||||||
|  **********************************************************************/ |  **********************************************************************/ | ||||||
| @ -195,9 +198,7 @@ $(document).ready(function() { | |||||||
|         // spinner
 |         // spinner
 | ||||||
|         $(document).bind("ajaxSend", function() { |         $(document).bind("ajaxSend", function() { | ||||||
|                 $("#spinner").show(); |                 $("#spinner").show(); | ||||||
|                 console.log('Starting Spinner at '+Date()); |  | ||||||
|         }).bind("ajaxStop", function() { |         }).bind("ajaxStop", function() { | ||||||
|                 $("#spinner").hide(); |                 $("#spinner").hide(); | ||||||
|                 console.log('Stopping Spinner at '+Date()); |  | ||||||
|         }); |         }); | ||||||
| }); | }); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user