Changeset 145
- Timestamp:
- 05/20/08 16:46:33 (5 months ago)
- Location:
- javascript/mootools_1.1.x
- Files:
-
- 2 modified
-
dc_remember/dc_remember.src.js (modified) (5 diffs)
-
verif_form/verif_form.src.js (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
javascript/mootools_1.1.x/dc_remember/dc_remember.src.js
r144 r145 39 39 * if( $('title-form') ) { 40 40 * var dcRemember = new dotclearRemember( "comment_info", 180, "/" ); // cookieName, cookieDuration, cookiePath 41 * dcRemember.init ialize();41 * dcRemember.init(); 42 42 * } 43 43 * });</code> … … 46 46 * 47 47 * @author Guillaume Kulakowski <guillaume_AT_llaumgui_DOT_com> 48 * @version 1.0. 148 * @version 1.0.2 49 49 * @param string cookieName Nom du cookie 50 50 * @param int cookieDuration Durée de vie du cookie en jours … … 67 67 * @since 1.0 68 68 */ 69 this.initialize = function initialize() { 69 this.init = function init() { 70 71 this.fbConsole("info", "dotclearRemember initialized"); 70 72 71 73 this.setCheckbox(); … … 136 138 $('c_remember').setProperty('checked', true); 137 139 } 140 else { 141 this.fbConsole("warn", "No cookie called" + this.cookieName"); 142 } 138 143 }; 139 144 … … 154 159 } 155 160 }; 161 162 163 164 /* 165 * Ecriture dnas la console de Firebug du champ sur une erreure. 166 * 167 * @author Guillaume Kulakowski <guillaume_AT_llaumgui_DOT_com> 168 * @since 1.0.2 169 * @param type string type de message 170 * @param msg string Suffix de l'ereur 171 */ 172 this.fbConsole = function fbConsole ( type, msg ) { 173 174 /* Présence de Firebug */ 175 if( typeof console != 'undefined' && typeof console.log != 'undefined' ) { 176 eval("console."+ type + "(msg);") 177 } 178 } 156 179 157 180 -
javascript/mootools_1.1.x/verif_form/verif_form.src.js
r144 r145 126 126 this.init = function init() { 127 127 128 this. consoleLog("verifForm initialized");128 this.fbConsole("info", "verifForm initialized"); 129 129 130 130 this.btnSubmit.addEvent( "click", function(e) { … … 273 273 */ 274 274 this.hookTest = function hookTest() { 275 this. consoleLog("No hookTest");275 this.fbConsole("warn", "No hookTest"); 276 276 }; 277 277 … … 285 285 */ 286 286 this.hookSubmit = function hookSubmit() { 287 this. consoleLog("No hooksubmit");287 this.fbConsole("warn", "No hooksubmit"); 288 288 }; 289 289 … … 306 306 } 307 307 else { 308 this. consoleLog("No id for input");308 this.fbConsole("warn", "No id for input"); 309 309 } 310 310 } … … 313 313 314 314 /* 315 * Ecriture dnas la console de fireBug du champ sur une erreure.315 * Ecriture dnas la console de Firebug du champ sur une erreure. 316 316 * 317 317 * @author Guillaume Kulakowski <guillaume_AT_llaumgui_DOT_com> 318 318 * @since 1.4 319 * @param type string type de message 319 320 * @param msg string Suffix de l'ereur 320 321 */ 321 this. consoleLog = function consoleLog (msg ) {322 this.fbConsole = function fbConsole ( type, msg ) { 322 323 323 if( console.log ) { 324 console.log(msg); 324 /* Présence de Firebug */ 325 if( typeof console != 'undefined' && typeof console.log != 'undefined' ) { 326 eval("console."+ type + "(msg);") 325 327 } 326 328 } … … 355 357 } 356 358 else { 357 this. consoleLog( "msgError length <= 0");359 this.fbConsole( "msgError length <= 0"); 358 360 } 359 361
