From 991063f296ec0be4a40cee260c0d2511cf0e494a Mon Sep 17 00:00:00 2001 From: Stefano Mazzocchi Date: Thu, 6 May 2010 01:53:50 +0000 Subject: [PATCH] prevent undo slidedown/slideup events to queue git-svn-id: http://google-refine.googlecode.com/svn/trunk@609 7d457c2a-affb-35e4-300a-418c747d4874 --- src/main/webapp/scripts/widgets/process-widget.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/webapp/scripts/widgets/process-widget.js b/src/main/webapp/scripts/widgets/process-widget.js index b160c3da5..fbe5905e9 100644 --- a/src/main/webapp/scripts/widgets/process-widget.js +++ b/src/main/webapp/scripts/widgets/process-widget.js @@ -58,16 +58,16 @@ ProcessWidget.prototype.showUndo = function(historyEntry) { this._latestHistoryEntry = historyEntry; - this._div.empty().html( + this._div.stop(true,false).empty().html( '
' + 'Undo ' + '
close
' - ).slideDown().delay(5000).slideUp(); + ).slideDown(200).delay(5000).slideUp(150); var elmts = DOM.bind(this._div); elmts.description.text(historyEntry.description); elmts.undo.click(function() { self.undo(); }); - elmts.close.click(function() { $(".process-panel-inner").slideUp(); }); + elmts.close.click(function() { $(".process-panel-inner").stop(true,false).slideUp(150); }); }; ProcessWidget.prototype.undo = function() {