1

I have a page with two components. One of them is a form that shows data fields from a model. The other component has a button that reloads the form with another id of the model associated.

How can I disable the warning message of unsaved changes for that model?

Don't Panic
  • 41,125
  • 10
  • 61
  • 80
Javier del Saz
  • 846
  • 1
  • 9
  • 16

1 Answers1

1

It was very simple!

$form->addClass("ignore_changes");
Javier del Saz
  • 846
  • 1
  • 9
  • 16
  • Yeah :) Please accept your own question when you can, because that will help future reader to find it here. This is the right answer for sure. – DarkSide Jan 10 '14 at 23:58