Repository: wicket Updated Branches: refs/heads/wicket-6.x ce729716c -> 4ee384369
WICKET-5806 Wicket.Log should log (at least errors) in the browser console even when Wicket Ajax Debug window is disabled Project: http://git-wip-us.apache.org/repos/asf/wicket/repo Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/4ee38436 Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/4ee38436 Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/4ee38436 Branch: refs/heads/wicket-6.x Commit: 4ee38436974006697562cfe61f2073482ea35d2c Parents: ce72971 Author: Martin Tzvetanov Grigorov <[email protected]> Authored: Thu Jan 8 12:09:34 2015 +0100 Committer: Martin Tzvetanov Grigorov <[email protected]> Committed: Thu Jan 8 12:10:06 2015 +0100 ---------------------------------------------------------------------- .../java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery-debug.js | 2 +- .../main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/wicket/blob/4ee38436/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery-debug.js ---------------------------------------------------------------------- diff --git a/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery-debug.js b/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery-debug.js index 573b6ac..a8dd7bb 100644 --- a/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery-debug.js +++ b/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery-debug.js @@ -127,7 +127,7 @@ } if (typeof(console) !== "undefined" && typeof(console.error) === 'function') { - console.error('Wicket.Ajax: ' + msg); + console.error('Wicket.Ajax: ', msg); } }, http://git-wip-us.apache.org/repos/asf/wicket/blob/4ee38436/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js ---------------------------------------------------------------------- diff --git a/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js b/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js index 459e665..963870d 100644 --- a/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js +++ b/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js @@ -230,6 +230,8 @@ error: function (msg) { if (Wicket.Log.enabled()) { Wicket.Ajax.DebugWindow.logError(msg); + } else if (typeof(console) !== "undefined" && typeof(console.error) === 'function') { + console.error('Wicket.Ajax: ', msg); } },
