prevent undo slidedown/slideup events to queue

git-svn-id: http://google-refine.googlecode.com/svn/trunk@609 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
Stefano Mazzocchi 2010-05-06 01:53:50 +00:00
parent df7a79089a
commit 991063f296

View File

@ -58,16 +58,16 @@ ProcessWidget.prototype.showUndo = function(historyEntry) {
this._latestHistoryEntry = historyEntry;
this._div.empty().html(
this._div.stop(true,false).empty().html(
'<div class="process-panel-inner"><div class="process-panel-undo">' +
'<a href="javascript:{}" bind="undo">Undo</a> <span bind="description"></span>' +
'</div><div style="text-align: right; padding-right: 1em;"><a href="javascript:{}" bind="close">close</a></div></div>'
).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() {