Skip to content

Commit

Permalink
application.js: forward extension
Browse files Browse the repository at this point in the history
  • Loading branch information
pepakriz committed Nov 15, 2014
1 parent 9edba55 commit 1d12d51
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Resources/public/js/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,14 @@ $(function () {
});
}
});
$.nette.ext('forward', {
success: function (payload) {
if (payload.forward) {
window.location.href = payload.forward;
return false;
}
}
});
$.nette.init();

});
Expand Down

0 comments on commit 1d12d51

Please sign in to comment.