Dygraphs needs to be refreshed
authordeclerambaul <fabian.kaelin@gmail.com>
Thu, 3 May 2012 15:53:43 +0000 (11:53 -0400)
committerdeclerambaul <fabian.kaelin@gmail.com>
Thu, 3 May 2012 15:53:43 +0000 (11:53 -0400)
lib/dashboard/dashboard-view.co
lib/template/dashboard.jade

index 832f4d2..4085ad2 100644 (file)
@@ -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'
index 3a03c80..4086126 100644 (file)
@@ -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