Commit e581b49d authored by Paul Asmuth's avatar Paul Asmuth
Browse files

old widgets should at least not crash for now

parent a5b3bd6b
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -3,7 +3,6 @@ class FnordMetric::ToplistWidget < FnordMetric::Widget
  def data
    super.merge(
      :gauges => data_gauges,
      :key_nouns => key_nouns,
      :autoupdate => (@opts[:autoupdate] || 0),
      :render_target => @opts[:render_target],
      :ticks => @opts[:ticks],
+1 −0
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@ FnordMetric.widgets.barsWidget = function(){
      if(opts.async_chart){
        updateChart();
      } else {
        if(!opts.values){ opts.values = [[0,0],[1,0]]; }
        values = opts.values;
        renderChart();
      }
+3 −1
Original line number Diff line number Diff line
@@ -83,7 +83,9 @@ FnordMetric.views.dashboardView = (function(dashboard_name){
    function announce(evt){
      if((evt.class == "widget_response") || (evt.class == "widget_push")){
        for(wkey in widget_objs){
          widget_objs[wkey].announce(evt);
          if(widget_objs[wkey].announce){ 
            widget_objs[wkey].announce(evt)
          }
        }  
      }
    }
+2 −1
Original line number Diff line number Diff line
@@ -7,7 +7,8 @@ FnordMetric.widgets.toplistWidget = function(){

    var current_gauge = false;

    if (!opts.tick){ opts.tick = opts.ticks[0]; }
    /* if (!opts.tick){ opts.tick = opts.ticks[0]; } */
    return this;

    var headbar = $('<div class="headbar"></div>').append(
      $('<h2></h2>').html(opts.title)