From 81e102ea8925c651629b0fbaf2986606f496dedf Mon Sep 17 00:00:00 2001 From: Michael van Schaik Date: Thu, 24 Mar 2016 16:54:19 +0100 Subject: [PATCH] Call this._super() from onmatch Fixes #3 --- javascript/SwitchField.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/javascript/SwitchField.js b/javascript/SwitchField.js index 40edccf..12a78e3 100755 --- a/javascript/SwitchField.js +++ b/javascript/SwitchField.js @@ -3,7 +3,8 @@ $('.cms-edit-form .field.switch').entwine({ onmatch: function () { new Switchery(this.find('.middleColumn input[type=checkbox]')[0]); + this._super(); // 'bubble' up } }); }); -})(jQuery); \ No newline at end of file +})(jQuery);