Skip to content

Commit

Permalink
Call this._super() from onmatch
Browse files Browse the repository at this point in the history
Fixes #3
  • Loading branch information
micschk committed Mar 24, 2016
1 parent 92fc913 commit 81e102e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion javascript/SwitchField.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
})(jQuery);

0 comments on commit 81e102e

Please sign in to comment.