--- a/client/js/renderer/scene.js Wed May 20 10:53:40 2015 +0200
+++ b/client/js/renderer/scene.js Fri May 22 17:45:50 2015 +0200
@@ -1027,15 +1027,21 @@
}
},
onDoubleClick: function(_event) {
- if (!this.isEditable()) {
- return;
- }
var _off = this.canvas_$.offset(),
_point = new paper.Point([
_event.pageX - _off.left,
_event.pageY - _off.top
]);
var _hitResult = paper.project.hitTest(_point);
+
+ if (!this.isEditable()) {
+ if (_hitResult && typeof _hitResult.item.__representation !== "undefined") {
+ if (_hitResult.item.__representation.model.get('uri')){
+ window.open(_hitResult.item.__representation.model.get('uri'), '_blank');
+ }
+ }
+ return;
+ }
if (this.isEditable() && (!_hitResult || typeof _hitResult.item.__representation === "undefined")) {
var _coords = this.toModelCoords(_point),
_data = {