var dialog = restoreDialog.create();
dialog.on('restore', function(event) {
sandbox.publish('restoreVersion', {version: historyItems.getSelected()[0], description: event.data.description});
var dialog = restoreDialog.create();
dialog.on('restore', function(event) {
sandbox.publish('restoreVersion', {version: historyItems.getSelected()[0], description: event.data.description});