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