From: declerambaul Date: Thu, 3 May 2012 15:53:43 +0000 (-0400) Subject: Dygraphs needs to be refreshed X-Git-Url: http://git.less.ly:3516/?a=commitdiff_plain;h=85596a093d5cbcad731e3d1402a7207f8b43344f;p=kraken-ui.git Dygraphs needs to be refreshed --- diff --git a/lib/dashboard/dashboard-view.co b/lib/dashboard/dashboard-view.co index 832f4d2..4085ad2 100644 --- a/lib/dashboard/dashboard-view.co +++ b/lib/dashboard/dashboard-view.co @@ -33,13 +33,19 @@ DashboardView = exports.DashboardView = BaseView.extend do # {{{ active_editors active_editors_target very_active_editors - mobile_devices - mobile_devices_browsers - mobile_devices_applications ]> + # mobile_devices + # mobile_devices_browsers + # mobile_devices_applications + core_graph_ids : ["unique_visitors ","pageviews","pageviews_mobile", "new_editors","active_editors", "active_editors_target"] + events: + # Select the whole permalink URI text when it receives focus. + 'click .core_graphs a' : 'redraw' + # 'click .load-button' : 'load' + subviews : [] graphs : null ready : false @@ -95,8 +101,12 @@ DashboardView = exports.DashboardView = BaseView.extend do # {{{ graph.off 'ready', arguments.callee graph.view.renderChart() + + @graph ... render this + redraw: -> + console.log 'redraw!', arguments attachGraphs: -> graphs_el = @$el.find '#graphs' diff --git a/lib/template/dashboard.jade b/lib/template/dashboard.jade index 3a03c80..4086126 100644 --- a/lib/template/dashboard.jade +++ b/lib/template/dashboard.jade @@ -10,7 +10,7 @@ section#graph-list nav ul.nav.subnav.nav-pills li: h3 Graphs - li.active: a(href="#core-graphs", data-toggle="tab") Core + li.active: a(href="#core-graphs", data-toggle="tab") Core li: a(href="#other-graphs", data-toggle="tab") Others .tab-content