/[Frey]/trunk/static/Frey/jQuery/flot/dataset_checkboxes.js
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/static/Frey/jQuery/flot/dataset_checkboxes.js

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 896 by dpavlin, Wed Dec 24 21:25:37 2008 UTC revision 897 by dpavlin, Wed Dec 24 22:03:53 2008 UTC
# Line 33  Line 33 
33              $.plot( placeholder, data, options);              $.plot( placeholder, data, options);
34    
35          placeholder.bind("plotselected", function (event,ranges) {          placeholder.bind("plotselected", function (event,ranges) {
                 var from = ranges.xaxis.from.toFixed(1);  
                 var to   = ranges.xaxis.to.toFixed(1);  
36    
37                  function DateTimeStr(t) {                  function DateTimeStr(t) {
38                          var d = new Date( parseInt(t) );                          var d = new Date( parseInt(t) );
# Line 59  Line 57 
57                          return str;                          return str;
58                  }                  }
59    
60                  $('#selection').text( DateTimeStr( from ) + ' to ' + DateTimeStr( to ) );                  var from = DateTimeStr( ranges.xaxis.from.toFixed(1) );
61                    var to   = DateTimeStr( ranges.xaxis.to.toFixed(1)   );
62    
63                    $('#selection').html(
64                            from + ' → ' + to + ' ' +
65                            '<a target="Frey::Shell::Log" href="/Frey::Shell::Log/as_sponge?from_datetime='+from+'&to_datetime='+to+'">see log</a>'
66                    );
67          });          });
68    
69      }      }

Legend:
Removed from v.896  
changed lines
  Added in v.897

  ViewVC Help
Powered by ViewVC 1.1.26