app/views/e9_crm/resources/create.js.erb in e9_crm-0.1.7 vs app/views/e9_crm/resources/create.js.erb in e9_crm-0.1.8

- old
+ new

@@ -1,6 +1,7 @@ <% if resource.errors.any? %> $('form .errors').html("<%= escape_javascript(resource_error_messages!) %>"); - $.fn.colorbox.resize(); + try { $.fn.colorbox.resize(); } catch(e) {} <% else %> - window.location.reload(true); + try { $.fn.colorbox.close(); } catch(e) {} + $('form .errors').html(""); <% end %>