summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f6521a3)
raw | patch | inline | side by side (parent: f6521a3)
author | Florian Forster <ff@octo.it> | |
Wed, 30 Jun 2010 15:19:08 +0000 (17:19 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Wed, 30 Jun 2010 15:19:08 +0000 (17:19 +0200) |
share/collection.js | patch | blob | history |
diff --git a/share/collection.js b/share/collection.js
index 4aacdd1e034d99d6c892cda61d3b717712042856..fdd9d30ae020fb2f1c0c77a7c722c91586f2a760 100644 (file)
--- a/share/collection.js
+++ b/share/collection.js
);
} /* update_search_suggestions */
-function zoom_redraw (jq_obj)
+function zoom_redraw (jq_obj) /* {{{ */
{
var url = jq_obj.data ("base_url");
jq_obj.attr ("src", url);
return (true);
-}
+} /* }}} function zoom_redraw */
-function zoom_reset (graph_id, diff)
+function zoom_reset (graph_id, diff) /* {{{ */
{
var jq_obj;
var end;
jq_obj.data ('end', end.toFixed (0));
return (zoom_redraw (jq_obj));
-}
+} /* }}} function zoom_reset */
-function zoom_hour (graph_id)
+function zoom_hour (graph_id) /* {{{ */
{
zoom_reset (graph_id, 3600);
-}
+} /* }}} function zoom_hour */
-function zoom_day (graph_id)
+function zoom_day (graph_id) /* {{{ */
{
zoom_reset (graph_id, 86400);
-}
+} /* }}} function zoom_day */
-function zoom_week (graph_id)
+function zoom_week (graph_id) /* {{{ */
{
zoom_reset (graph_id, 7 * 86400);
-}
+} /* }}} function zoom_week */
-function zoom_month (graph_id)
+function zoom_month (graph_id) /* {{{ */
{
zoom_reset (graph_id, 31 * 86400);
-}
+} /* }}} function zoom_month */
-function zoom_year (graph_id)
+function zoom_year (graph_id) /* {{{ */
{
zoom_reset (graph_id, 366 * 86400);
-}
+} /* }}} function zoom_year */
-function zoom_relative (graph_id, factor_begin, factor_end)
+function zoom_relative (graph_id, factor_begin, factor_end) /* {{{ */
{
var jq_obj;
var end;
jq_obj.data ('end', end + (diff * factor_end));
return (zoom_redraw (jq_obj));
-}
+} /* }}} function zoom_relative */
function zoom_reference (graph_id) /* {{{ */
{