Changeset 1533397
- Timestamp:
- 11/13/2016 08:16:24 PM (9 years ago)
- Location:
- bugfu-console-debugger
- Files:
-
- 3 edited
- 4 copied
-
tags/1.2.3 (copied) (copied from bugfu-console-debugger/trunk)
-
tags/1.2.3/bugfu-console-debugger.php (copied) (copied from bugfu-console-debugger/trunk/bugfu-console-debugger.php) (2 diffs)
-
tags/1.2.3/js/ajax-bugfu-console-debugger.js (copied) (copied from bugfu-console-debugger/trunk/js/ajax-bugfu-console-debugger.js) (2 diffs)
-
tags/1.2.3/readme.txt (copied) (copied from bugfu-console-debugger/trunk/readme.txt) (2 diffs)
-
trunk/bugfu-console-debugger.php (modified) (2 diffs)
-
trunk/js/ajax-bugfu-console-debugger.js (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bugfu-console-debugger/tags/1.2.3/bugfu-console-debugger.php
r1533229 r1533397 5 5 * Plugin URI: https://github.com/fedeandri/bugfu-console-debugger 6 6 * Description: BugFu lets you log from PHP directly to your Browser JavaScript Console - Meant as an aid to those practicing the ancient art of debugging 7 * Version: 1.2. 27 * Version: 1.2.3 8 8 * Author: Federico Andrioli 9 9 * Author URI: https://it.linkedin.com/in/fedeandri … … 20 20 { 21 21 22 const PLUGIN_VERSION = '1.2. 2';22 const PLUGIN_VERSION = '1.2.3'; 23 23 const PLUGIN_PREFIX = 'bugfu'; 24 24 const PLUGIN_SHORT_NAME = 'BugFu'; -
bugfu-console-debugger/tags/1.2.3/js/ajax-bugfu-console-debugger.js
r1528729 r1533397 1 1 (function($) { 2 2 3 var bugfu_can_read_log = true;4 3 var bugfu_previous_log = null; 5 var bugfu_read_log_interval = null; 6 var bugfu_interval_millisec = 350; 7 4 var bugfu_is_reading_log = false; 5 8 6 $( document ).ready( function() { 9 7 10 bugfu_read_log_interval = setInterval( bugfu_read_log, bugfu_interval_millisec ); 11 }); 8 bugfu_read_log(); 12 9 13 $( document ).ajaxSend( function() {10 $( document ).ajaxSend( function() { 14 11 15 if( bugfu_read_log_interval == null ) { 16 17 bugfu_read_log_interval = setInterval( bugfu_read_log, bugfu_interval_millisec ); 18 } 12 if( bugfu_previous_log !== null ) { 13 bugfu_read_log(); 14 } 15 }); 16 19 17 }); 20 18 21 19 function bugfu_read_log() { 22 20 23 if( bugfu_can_read_log ) {21 if( !bugfu_is_reading_log ) { 24 22 25 bugfu_ can_read_log = false;23 bugfu_is_reading_log = true; 26 24 27 25 var data = { … … 39 37 var log = response.data.log; 40 38 41 if( log || bugfu_previous_log== null ) {39 if( log.length > 0 || bugfu_previous_log === null ) { 42 40 43 41 console.log(preheader.concat(header, "\n\n", log, "\n\n\n")); 44 bugfu_previous_log = log;42 bugfu_previous_log = log; 45 43 } 46 44 47 clearInterval(bugfu_read_log_interval); 48 bugfu_read_log_interval = null; 49 bugfu_can_read_log = true; 45 bugfu_is_reading_log = false; 50 46 }, 51 47 error: function(){ 52 53 clearInterval(bugfu_read_log_interval); 54 bugfu_read_log_interval = null; 55 bugfu_can_read_log = true; 48 49 bugfu_is_reading_log = false; 56 50 } 57 51 }); -
bugfu-console-debugger/tags/1.2.3/readme.txt
r1533229 r1533397 4 4 Requires at least: 3.8 5 5 Tested up to: 4.7 6 Stable tag: 1.2. 26 Stable tag: 1.2.3 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 76 76 == Changelog == 77 77 78 = 1.2.3 = 79 * Update and simplify the AJAX calls debugging feature 80 78 81 = 1.2.2 = 79 82 * Prevent PHP notice when not logging from a class -
bugfu-console-debugger/trunk/bugfu-console-debugger.php
r1533229 r1533397 5 5 * Plugin URI: https://github.com/fedeandri/bugfu-console-debugger 6 6 * Description: BugFu lets you log from PHP directly to your Browser JavaScript Console - Meant as an aid to those practicing the ancient art of debugging 7 * Version: 1.2. 27 * Version: 1.2.3 8 8 * Author: Federico Andrioli 9 9 * Author URI: https://it.linkedin.com/in/fedeandri … … 20 20 { 21 21 22 const PLUGIN_VERSION = '1.2. 2';22 const PLUGIN_VERSION = '1.2.3'; 23 23 const PLUGIN_PREFIX = 'bugfu'; 24 24 const PLUGIN_SHORT_NAME = 'BugFu'; -
bugfu-console-debugger/trunk/js/ajax-bugfu-console-debugger.js
r1528729 r1533397 1 1 (function($) { 2 2 3 var bugfu_can_read_log = true;4 3 var bugfu_previous_log = null; 5 var bugfu_read_log_interval = null; 6 var bugfu_interval_millisec = 350; 7 4 var bugfu_is_reading_log = false; 5 8 6 $( document ).ready( function() { 9 7 10 bugfu_read_log_interval = setInterval( bugfu_read_log, bugfu_interval_millisec ); 11 }); 8 bugfu_read_log(); 12 9 13 $( document ).ajaxSend( function() {10 $( document ).ajaxSend( function() { 14 11 15 if( bugfu_read_log_interval == null ) { 16 17 bugfu_read_log_interval = setInterval( bugfu_read_log, bugfu_interval_millisec ); 18 } 12 if( bugfu_previous_log !== null ) { 13 bugfu_read_log(); 14 } 15 }); 16 19 17 }); 20 18 21 19 function bugfu_read_log() { 22 20 23 if( bugfu_can_read_log ) {21 if( !bugfu_is_reading_log ) { 24 22 25 bugfu_ can_read_log = false;23 bugfu_is_reading_log = true; 26 24 27 25 var data = { … … 39 37 var log = response.data.log; 40 38 41 if( log || bugfu_previous_log== null ) {39 if( log.length > 0 || bugfu_previous_log === null ) { 42 40 43 41 console.log(preheader.concat(header, "\n\n", log, "\n\n\n")); 44 bugfu_previous_log = log;42 bugfu_previous_log = log; 45 43 } 46 44 47 clearInterval(bugfu_read_log_interval); 48 bugfu_read_log_interval = null; 49 bugfu_can_read_log = true; 45 bugfu_is_reading_log = false; 50 46 }, 51 47 error: function(){ 52 53 clearInterval(bugfu_read_log_interval); 54 bugfu_read_log_interval = null; 55 bugfu_can_read_log = true; 48 49 bugfu_is_reading_log = false; 56 50 } 57 51 }); -
bugfu-console-debugger/trunk/readme.txt
r1533229 r1533397 4 4 Requires at least: 3.8 5 5 Tested up to: 4.7 6 Stable tag: 1.2. 26 Stable tag: 1.2.3 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 76 76 == Changelog == 77 77 78 = 1.2.3 = 79 * Update and simplify the AJAX calls debugging feature 80 78 81 = 1.2.2 = 79 82 * Prevent PHP notice when not logging from a class
Note: See TracChangeset
for help on using the changeset viewer.