make the undo dialog closable

git-svn-id: http://google-refine.googlecode.com/svn/trunk@371 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
Stefano Mazzocchi 2010-04-01 19:11:37 +00:00
parent 988378c761
commit d1e72e7797

View File

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