Commit 3c510557 authored by Paul Asmuth's avatar Paul Asmuth
Browse files

html widget...

parent 58445c4b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ TODO
- caching

- pie widget :)
- fix html, toplist
- fix toplist widget
- timeseries-widget: cardinal on/off should be skeuomorph

- namespace picker in sidebar
+3 −6
Original line number Diff line number Diff line
@@ -15,9 +15,6 @@ FnordMetric.widgets.htmlWidget = function(){
    opts.elem.append(container);
  }

  function updateValues(opts){}
  function updatedisplay(opts, diff_factor){}

  return {
    render: render
  };
+2 −1
Original line number Diff line number Diff line
@@ -8,7 +8,6 @@ FnordMetric.widgets.toplistWidget = function(){
    var current_gauge = false;

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

    var headbar = $('<div class="headbar"></div>').append(
      $('<h2></h2>').html(opts.title)
@@ -21,6 +20,8 @@ FnordMetric.widgets.toplistWidget = function(){
      $('<div class="toplist_inner"></div>')
    );

    return this;

    if(!opts.ticks){
      var first = true;
      for(k in opts.gauges){