+ \r
+ \r
+ dom.find('.btn.compare').click(function(e) {\r
+ var selected = historyItems.getSelected();\r
+ sandbox.publish('compare', selected[0], selected[1]);\r
+ });\r
+ \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