From 8045127da8ab97cf6cbf77fb0557d9ceb267022f Mon Sep 17 00:00:00 2001 From: Lennart Kats Date: Sat, 12 Nov 2016 17:08:18 +0000 Subject: [PATCH] Add onchange event handler --- plugins/c9.ide.ui/forms.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/c9.ide.ui/forms.js b/plugins/c9.ide.ui/forms.js index 31171f9d..7399ad53 100644 --- a/plugins/c9.ide.ui/forms.js +++ b/plugins/c9.ide.ui/forms.js @@ -309,7 +309,11 @@ define(function(require, exports, module) { value: options.path ? createBind(options.path) : (options.defaultValue || ""), - realtime: typeof options.realtime !== "undefined" ? options.realtime : 1 + realtime: typeof options.realtime !== "undefined" ? options.realtime : 1, + onafterchange: function(e) { + if (options.onchange) + options.onchange({ value: e.value }); + }, }) ]; break;