From 6b9ce9afd507c2af67c708310354f465f4983ce4 Mon Sep 17 00:00:00 2001 From: Robyer Date: Sat, 26 Sep 2015 09:57:48 +0200 Subject: [PATCH] Support nette-live-form-validation (version 1.6.0 or newer) https://github.com/Robyer/nette-live-form-validation/ --- client-side/js/grido.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client-side/js/grido.js b/client-side/js/grido.js index 45cb2e3c..fba1cf35 100644 --- a/client-side/js/grido.js +++ b/client-side/js/grido.js @@ -887,6 +887,11 @@ } }; + // Support for nette-live-form-validation + if (typeof window.LiveForm === 'object') { + LiveForm.setupHandlers($control.get(0)); + } + $control .off('keypress.grido') .on('keypress.grido', keypress)