Skip to content

Commit

Permalink
Fix gauge for the new update structure
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianMayer committed Feb 8, 2015
1 parent 7ab0781 commit e25a9e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/cometvisu.appcache
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CACHE MANIFEST
# Version SVN:20150201-1628
# Version SVN:20150208-1541

CACHE:
index.html
Expand Down
6 changes: 3 additions & 3 deletions src/plugins/gauge/structure_plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ VisuDesign_Custom.prototype.addCreator("gauge", {
return ret_val;
},

update: function(e, d) {
update: function( ga, d ) {
var element = $(this);
var data = templateEngine.widgetDataGetByElement( element );
var value = templateEngine.design.defaultUpdate( e, d, element, true, element.parent().attr('id') );
var variant = data['address'][ e.type ][2];
var value = templateEngine.design.defaultUpdate( ga, d, element, true, element.parent().attr('id') );
var variant = data.address[ ga ][2];
var gaugeElement = data['gaugeElement'];
if (gaugeElement) {
switch (variant) {
Expand Down

0 comments on commit e25a9e6

Please sign in to comment.