File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
app/Plugin/MapModule/webroot/js/app/controllers/mapeditors Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,6 @@ App.Controllers.MapeditorsViewController = Frontend.AppController.extend({
96
96
//eg. drawTacho, drawText, drawCylinder ...
97
97
98
98
var currentElementData = self . findParentGadgetData ( mapGadgets [ i ] [ 'id' ] ) ;
99
-
100
99
$ ( self . mapViewContainer ) . append ( '<div id="svgContainer_' + currentElementData [ 'currentUuid' ] + '"></div>' ) ;
101
100
$ ( '<div id="svgContainer_' + mapGadgets [ i ] [ 'id' ] + '"></div>' )
102
101
. appendTo ( self . mapViewContainer ) ;
@@ -124,6 +123,9 @@ App.Controllers.MapeditorsViewController = Frontend.AppController.extend({
124
123
options = $ . extend ( { } , options , opt ) ;
125
124
}
126
125
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>' ) ;
127
129
} ;
128
130
}
129
131
You can’t perform that action at this time.
0 commit comments