Skip to content

Commit 427c28c

Browse files
committed
Merge pull request #127 from it-novum/ITC-303
[+]added browser link around gadgets in view ITC-303 #dev-to-qa-queue
2 parents 1a7e05e + 0d6c87d commit 427c28c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/Plugin/MapModule/webroot/js/app/controllers/mapeditors/view_controller.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ App.Controllers.MapeditorsViewController = Frontend.AppController.extend({
9696
//eg. drawTacho, drawText, drawCylinder ...
9797

9898
var currentElementData = self.findParentGadgetData(mapGadgets[i]['id']);
99-
10099
$(self.mapViewContainer).append('<div id="svgContainer_'+currentElementData['currentUuid']+'"></div>');
101100
$('<div id="svgContainer_'+mapGadgets[i]['id']+'"></div>')
102101
.appendTo(self.mapViewContainer);
@@ -124,6 +123,9 @@ App.Controllers.MapeditorsViewController = Frontend.AppController.extend({
124123
options = $.extend({}, options, opt);
125124
}
126125
self.Gadget['draw'+mapGadgets[i]['gadget']]('svgContainer_'+mapGadgets[i]['id'], options);
126+
127+
//wrap browser link around the gadget
128+
$('#svgContainer_'+mapGadgets[i]['id']).children().wrap('<a href="'+currentElementData['currentLink']+'"></a>');
127129
};
128130
}
129131

0 commit comments

Comments
 (0)