summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorYuval Adam <yuval@y3xz.com>2015-07-15 14:02:53 +0300
committerYuval Adam <yuval@y3xz.com>2015-07-15 14:02:53 +0300
commit3f17dae14c0d27b8d6f6479a00f25469c1a5dcc4 (patch)
treed8536ca4eb72ee9f6935031288f9f04b872b891a /client
parent40f7ed633ebdaa90822a863ccf63a5a3c125be79 (diff)
Set default month and year offsets
Diffstat (limited to 'client')
-rw-r--r--client/button.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/client/button.js b/client/button.js
index 476fc04..166d339 100644
--- a/client/button.js
+++ b/client/button.js
@@ -11,6 +11,14 @@ Router.onRun(function () {
this.next();
}, { only: ['login'] });
+Router.onRun(function () {
+ $(document).ready(function () {
+ $('div.all-months').offset({ top: -1142 });
+ $('div.all-years').offset({ top: -392 });
+ });
+ this.next();
+}, { only: ['dates'] });
+
function prepareDates() {
var month = $('input[name=month]').val();
var year = $('input[name=year]').val();