From 9f68504e05c6070e4df1a4ab66024f191793a755 Mon Sep 17 00:00:00 2001 From: Stefano Mazzocchi Date: Sat, 24 Apr 2010 00:16:23 +0000 Subject: [PATCH] make the undo window slide up and down and disappear on its own after a little while git-svn-id: http://google-refine.googlecode.com/svn/trunk@524 7d457c2a-affb-35e4-300a-418c747d4874 --- src/main/webapp/scripts/widgets/process-widget.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/webapp/scripts/widgets/process-widget.js b/src/main/webapp/scripts/widgets/process-widget.js index a9311a197..05e347ec1 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().show().html( + this._div.empty().html( '
' + 'Undo ' + '
close
' - ); + ).slideDown().delay(5000).slideUp(); ; var elmts = DOM.bind(this._div); - + elmts.description.text(historyEntry.description); elmts.undo.click(function() { self.undo(); }); - elmts.close.click(function() { $(".process-panel-inner").hide(); }); + elmts.close.click(function() { $(".process-panel-inner").slideUp(); }); }; ProcessWidget.prototype.undo = function() {