Revert staticPage setting on validation or server error

closes #3134
- reset `page` property in PSM if errors occur after un/setting static page in editor
I was just thinking, if the save didn't succeed, and we're reverting to the
previous state by doing a `toggleProperty` in the `.catch()`, then we've
also potentially reverted our isDirty?


On Fri, Jun 27, 2014 at 2:34 PM, David Arvelo <notifications@github.com>
wrote:

> In core/client/controllers/post-settings-menu.js:
>
> >              }).catch(function (errors) {
> > +                self.toggleProperty('page');
>
> I think isDirty will be set a few lines above anyway, on this.set('page',
> val);, if the save fails. The only thing that makes isDirty false again
> is if the save succeeds.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/TryGhost/Ghost/pull/3135/files#r14313940>.
>