I have a button that updates a field on the model of the page title that it is on, then updates a field on a different model with a field value from the model of the page title, then saves both of the models. However I get an error message that says, “Uncaught Error: cannot call methods on button prior to initialization; attempted to call method ‘enable’”. I only get the error message whenever I have changed the value of the field that populating a field on a different model. However, if I triple click the button, the actions all go through. I’ve tried saving the model of the page title first and then updating the other model with the value, but that hasn’t worked either. It just saves the model and doesn’t do any of the other actions. Any ideas of what is going on?
