From 3cbdfe62ecf16b95023a98946681042642d54c9a Mon Sep 17 00:00:00 2001 From: kakwa Date: Wed, 8 Jul 2015 00:57:03 +0200 Subject: [PATCH] using onchange instead on onkeyup --- resources/templates/form.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/templates/form.tmpl b/resources/templates/form.tmpl index 2718819..1fde0c7 100644 --- a/resources/templates/form.tmpl +++ b/resources/templates/form.tmpl @@ -108,7 +108,7 @@ fields['${attr}'] = document.getElementById('${attr}'); % for attrid in attr_events: if (fields['${attrid}'] != null) { - fields['${attrid}'].onkeyup = function () { + fields['${attrid}'].onchange = function () { % for tuple in attr_events[attrid]: if (typeof(${tuple[1]}) == "function") { fields['${tuple[0]}'].value = ${tuple[1]}(${', '.join(functions[tuple])});