You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2013/04/26 21:50:43 UTC
git commit: WICKET-5160 Throttle the animation in DebugWindow when
there are many errors
Updated Branches:
refs/heads/master 958730846 -> 9ec2db95b
WICKET-5160 Throttle the animation in DebugWindow when there are many errors
Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/9ec2db95
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/9ec2db95
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/9ec2db95
Branch: refs/heads/master
Commit: 9ec2db95bcdc97cd69f43c50ce3d321ae99bc6b9
Parents: 9587308
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Fri Apr 26 21:50:10 2013 +0200
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Fri Apr 26 21:50:10 2013 +0200
----------------------------------------------------------------------
.../wicket/ajax/res/js/wicket-ajax-jquery-debug.js | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/wicket/blob/9ec2db95/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 03194a5..d979c97 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
@@ -60,6 +60,8 @@
wicketDebugLink: 'wicketDebugLink',
+ throttler: new Wicket.Throttler(true),
+
showDebugWindow : function() {
var self = Wicket.Ajax.DebugWindow;
self.init();
@@ -115,10 +117,13 @@
if (jQuery('#'+self.debugWindowId).css('display') === 'none') {
jQuery('#'+self.wicketDebugLink)
.css('backgroundColor', 'crimson')
- .css('color', 'aliceBlue')
+ .css('color', 'aliceBlue');
- // poor man's animation to get developer's attention
- .hide(150).show(150).hide(150).show(150);
+ self.throttler.throttle("Wicket.Ajax.DebugWindow", 300, function() {
+ jQuery('#'+self.wicketDebugLink)
+ // poor man's animation to get developer's attention
+ .hide(150).show(150).hide(150).show(150);
+ });
}
if (typeof(console) !== "undefined" && typeof(console.error) === 'function') {