Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Commit

Permalink
#31 redirect after a timeout so it lets time to actually save the pro…
Browse files Browse the repository at this point in the history
…file
  • Loading branch information
Baptouuuu committed Oct 4, 2014
1 parent 9f2f102 commit 873e530
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tutorial/js/App/Bundle/AddressBook/Controller/Create.js
Expand Up @@ -27,7 +27,9 @@ App.Bundle.AddressBook.Controller.Create.prototype = Object.create(Sy.Controller

this.viewscreen.resetForm();

this.redirect('home');
setTimeout(function () {
this.redirect('home');
}.bind(this), 50);
} else {
this.viewscreen
.displayErrorMessage();
Expand Down

0 comments on commit 873e530

Please sign in to comment.