瀏覽代碼

Portal : Removed console.log to prevent crashes on IE9

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4323 a333f486-631f-4898-b8df-5754b55c2be0
glajarige 8 年之前
父節點
當前提交
72de36d101

+ 2 - 3
datamodels/2.x/itop-portal-base/portal/src/views/bricks/browse/mode_list.html.twig

@@ -101,7 +101,7 @@
 									cellElem.attr('data-toggle', 'modal').attr('data-target', '#modal-for-all').attr('href', url);
 									break;
 								default:
-									console.log('Action "'+levelPrimaryAction.type+'" not implemented');
+									//console.log('Action "'+levelPrimaryAction.type+'" not implemented');
 									break;
 							}
 
@@ -154,7 +154,7 @@
 											actionElem.attr('data-toggle', 'modal').attr('data-target', '#modal-for-all').attr('href', url);
 											break;
 										default:
-											console.log('Action "'+action.type+'" not implemented for secondary action');
+											//console.log('Action "'+action.type+'" not implemented for secondary action');
 											break;
 									}
 									
@@ -201,7 +201,6 @@
 							"type": "html",
 							"data": oLevelsProperties[sKey].alias+".fields."+oLevelsProperties[sKey].fields[i].code
 						});
-						console.log(oLevelsProperties[sKey].fields[i].visible);
 					}
 				}
 			}

+ 2 - 2
datamodels/2.x/itop-portal-base/portal/src/views/bricks/browse/mode_tree.html.twig

@@ -227,7 +227,7 @@
 						aElem.attr('data-toggle', 'modal').attr('data-target', '#modal-for-all').attr('href', url);
 						break;
 					default:
-						console.log('Action "'+levelPrimaryAction.type+'" not implemented for primary action');
+						//console.log('Action "'+levelPrimaryAction.type+'" not implemented for primary action');
 						break;
 				}
 				
@@ -279,7 +279,7 @@
 								actionElem.attr('data-toggle', 'modal').attr('data-target', '#modal-for-all').attr('href', url);
 								break;
 							default:
-								console.log('Action "'+action.type+'" not implemented for secondary action');
+								//console.log('Action "'+action.type+'" not implemented for secondary action');
 								break;
 						}
 						

+ 4 - 4
datamodels/2.x/itop-portal-base/portal/src/views/bricks/manage/layout.html.twig

@@ -69,12 +69,12 @@
 		{
 			var tableProperties = columnsProperties[tableName];
 			
-			if(tableProperties === undefined)
+			if(tableProperties === undefined && window.console)
 			{
 				console.log('Could not retrieve columns properties for table "'+tableName+'"');
 				return false;
 			}
-			if(rawData[tableName] === undefined)
+			if(rawData[tableName] === undefined && window.console)
 			{
 				console.log('Could not retrieve data for table "'+tableName+'"');
 				return false;
@@ -120,7 +120,7 @@
 									cellElem.attr('data-toggle', 'modal').attr('data-target', '#modal-for-all').attr('href', url);
 									break;
 								default:
-									console.log('Action "'+itemPrimaryAction+'" not implemented');
+									//console.log('Action "'+itemPrimaryAction+'" not implemented');
 									break;
 							}
 							
@@ -227,7 +227,7 @@
 				// Note : The '.off()' call is to unbind event from DataTables that where triggered before we could intercept anything
 				$('#table-{{ sAreaId }}_filter input').off().on('keyup', function(){
 					var me = this;
-					console.log('here');
+					
 					clearTimeout(oKeyTimeout);
 					oKeyTimeout = setTimeout(function() {
 						oTable{{ sAreaId }}.search(me.value.latinise()).draw();

+ 2 - 2
datamodels/2.x/itop-portal-base/portal/src/views/bricks/user-profile/layout.html.twig

@@ -189,11 +189,11 @@
 	});
 	// - Undo button
 	/*$('#user-profile-wrapper .actions .btn_undo').on('click', function(oEvent){
-		console.log('Picture undo trigger');
+		//console.log('Picture undo trigger');
 	});*/
 	// - Reset button
 	$('#user-profile-wrapper .actions .btn_reset').on('click', function(oEvent){
-		console.log('Picture reset trigger');
+		//console.log('Picture reset trigger');
 	});
 	
 	// Submit button