Mercurial > templog
diff web/views/set.tpl @ 489:46e327c00246
gets current params
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 11 Feb 2014 22:10:32 +0800 |
parents | 4792e9910cde |
children | 4fa8cbf31065 |
line wrap: on
line diff
--- a/web/views/set.tpl Sun Feb 09 11:41:13 2014 +0800 +++ b/web/views/set.tpl Tue Feb 11 22:10:32 2014 +0800 @@ -257,11 +257,13 @@ setter.edit(param, Number(this.value)); }); - $(".button_up", el).on("vmousedown", function() { + $(".button_up", el).on("vmousedown", function(e) { + e.preventDefault(); setter.adjust(param, 1); this.blur() }); - $(".button_down", el).on("vmousedown", function() { + $(".button_down", el).on("vmousedown", function(e) { + e.preventDefault(); setter.adjust(param, -1); this.blur() }); @@ -274,12 +276,12 @@ var button_yes = $(".button_yes", el); var button_no = $(".button_no", el); - button_yes.on("vmousedown", function() { + button_yes.on("vmousedown", function(e) { setter.edit(param, true); this.blur() }) - button_no.on("vmousedown", function() { + button_no.on("vmousedown", function(e) { setter.edit(param, false); this.blur() })