Skip to content

Commit

Permalink
Merge pull request #4 from micschk/patch-2
Browse files Browse the repository at this point in the history
Call this._super() from onmatch
  • Loading branch information
Anton Smith committed Mar 25, 2016
2 parents 952d76b + 81e102e commit d9503ae
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 d9503ae

Please sign in to comment.