app/views/cms/forms/create.js.erb in rails_admin_cms-0.0.2 vs app/views/cms/forms/create.js.erb in rails_admin_cms-0.0.3
- old
+ new
@@ -1,3 +1,3 @@
-$('#new_form_<%= params[:cms_view_type] %>').replaceWith("<%= j render cms_form_partial %>");
-$.validate({validateOnBlur: false});
+$('<%= cms_form_instance.js_form_selector %>').replaceWith("<%= j render cms_form_partial %>");
+CMS.validate();
<%= render 'cms/shared/flash_messages' %>