- dom.find('.btn.restore').click(function(e) {
- var dialog = restoreDialog.create();
- dialog.on('restore', function(event) {
- sandbox.publish('restoreVersion', {version: historyItems.getSelected()[0], description: event.data.description});
- event.success();
- });
- dialog.show();
+ dom.find('.btn.restore').click(function() {
+ sandbox.publish('restoreVersion', historyItems.getSelected()[0]);