summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6152606)
raw | patch | inline | side by side (parent: 6152606)
author | Florian Forster <ff@octo.it> | |
Wed, 30 Jun 2010 14:56:19 +0000 (16:56 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Wed, 30 Jun 2010 14:56:19 +0000 (16:56 +0200) |
share/collection.js | patch | blob | history |
diff --git a/share/collection.js b/share/collection.js
index a15a096038a8e6d2f2426d6f97390ae60c90788f..4aacdd1e034d99d6c892cda61d3b717712042856 100644 (file)
--- a/share/collection.js
+++ b/share/collection.js
return (zoom_redraw (jq_obj));
}
+function zoom_reference (graph_id) /* {{{ */
+{
+ var jq_obj;
+ var end;
+ var begin;
+
+ jq_obj = $("#" + graph_id);
+ if (jq_obj == null)
+ return (false);
+
+ begin = jq_obj.data ('begin');
+ end = jq_obj.data ('end');
+ if ((begin == null) || (end == null))
+ return (false);
+
+ $(".graph-img img").each (function ()
+ {
+ $(this).data ('begin', begin);
+ $(this).data ('end', end);
+ zoom_redraw ($(this));
+ });
+} /* }}} function zoom_reference */
+
function zoom_earlier (graph_id) /* {{{ */
{
return (zoom_relative (graph_id, -0.2, -0.2));
+ "<div class=\"graph-button\" onClick=\"zoom_week ('"+id+"');\">W</div>"
+ "<div class=\"graph-button\" onClick=\"zoom_month ('"+id+"');\">M</div>"
+ "<div class=\"graph-button\" onClick=\"zoom_year ('"+id+"');\">Y</div>"
- + "<div class=\"graph-button\" >!</div>"
+ + "<div class=\"graph-button\" onClick=\"zoom_reference ('"+id+"');\">!</div>"
+ "</div>"
+ "<div class=\"graph-buttons navigation\">"
+ "<div class=\"graph-button\" onClick=\"zoom_earlier ('"+id+"');\">←</div>"