[ Index ] |
|
Code source de vtiger CRM 5.0.2 |
1 /* 2 * FCKeditor - The text editor for internet 3 * Copyright (C) 2003-2005 Frederico Caldeira Knabben 4 * 5 * Licensed under the terms of the GNU Lesser General Public License: 6 * http://www.opensource.org/licenses/lgpl-license.php 7 * 8 * For further information visit: 9 * http://www.fckeditor.net/ 10 * 11 * "Support Open Source software. What about a donation today?" 12 * 13 * File Name: fckdebug.js 14 * Debug window control and operations. 15 * 16 * File Authors: 17 * Frederico Caldeira Knabben (fredck@fckeditor.net) 18 */ 19 20 var FCKDebug = new Object() ; 21 22 if ( FCKConfig.Debug ) 23 { 24 FCKDebug.Output = function( message, color, noParse ) 25 { 26 if ( ! FCKConfig.Debug ) return ; 27 28 if ( !noParse && message != null && isNaN( message ) ) 29 message = message.replace(/</g, "<") ; 30 31 if ( !this.DebugWindow || this.DebugWindow.closed ) 32 this.DebugWindow = window.open( FCKConfig.BasePath + 'fckdebug.html', 'FCKeditorDebug', 'menubar=no,scrollbars=no,resizable=yes,location=no,toolbar=no,width=600,height=500', true ) ; 33 34 if ( this.DebugWindow.Output) 35 { 36 try 37 { 38 this.DebugWindow.Output( message, color ) ; 39 } 40 catch ( e ) {} // Ignore errors 41 } 42 } 43 44 FCKDebug.OutputObject = function( anyObject, color ) 45 { 46 var message ; 47 48 if ( anyObject != null ) 49 { 50 message = 'Properties of: ' + anyObject + '</b><blockquote>' ; 51 52 for (var prop in anyObject) 53 { 54 var sVal = anyObject[ prop ] ? anyObject[ prop ] + '' : '[null]' ; 55 try 56 { 57 message += '<b>' + prop + '</b> : ' + sVal.replace(/</g, '<') + '<br>' ; 58 } 59 catch (e) 60 { 61 message += '<b>' + prop + '</b> : [' + typeof( anyObject[ prop ] ) + ']<br>' ; 62 } 63 } 64 65 message += '</blockquote><b>' ; 66 } else 67 message = 'OutputObject : Object is "null".' ; 68 69 FCKDebug.Output( message, color, true ) ; 70 } 71 } 72 else 73 { 74 FCKDebug.Output = function() {} 75 FCKDebug.OutputObject = function() {} 76 }
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 10:22:19 2007 | par Balluche grâce à PHPXref 0.7 |