1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-11-21 17:04:21 +01:00

using onchange instead on onkeyup

This commit is contained in:
kakwa 2015-07-08 00:57:03 +02:00
parent 5dc8011749
commit 3cbdfe62ec

View File

@ -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])});