vinsol / fullcalendar-rails-engine

Rails engine implementation of fullcalendar jQuery plugin(http://arshaw.com/fullcalendar/). Create, edit, delete, reschedule, resize events like google calendar.
http://vinsol.com/fullcalendar-demo
MIT License
66 stars 51 forks source link

Submit Buttons are not getting enabled #30

Open kuldeepaggarwal opened 8 years ago

kuldeepaggarwal commented 8 years ago

Whenever there is an error while creating a form then after receiving response from server, submit buttons are still disabled.

Proposed solution:

$(document).ajaxComplete(function () {
  setTimeout(function() {
    $('[name="commit"]').attr("disabled", false);
  }, 1000)
});