app/views/wallaby/resources/form/_json.html.erb in wallaby-6.1.6 vs app/views/wallaby/resources/form/_json.html.erb in wallaby-7.0.0.beta1
- old
+ new
@@ -17,10 +17,10 @@
<% unless @codemirror_init %>
<% @codemirror_init = true %>
<% content_for :custom_javascript do %>
<% javascript_tag do %>
- jQuery(document).off(readyPrefix('.codemirror_init')).on(readyPrefix('.codemirror_init'), function () {
+ documentReady('.codemirror_init', function () {
$('textarea[data-init="codemirror"]').each(function (index, element) {
CodeMirror.fromTextArea(element, {
mode: $(element).data('mode')
});
})