From 1d12d51f8648c0cf95d609fc562d002ff99c4ad6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20K=C5=99=C3=AD=C5=BE?= Date: Sat, 15 Nov 2014 09:47:50 +0100 Subject: [PATCH] application.js: forward extension --- Resources/public/js/application.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Resources/public/js/application.js b/Resources/public/js/application.js index 737aafaf..4066aac3 100755 --- a/Resources/public/js/application.js +++ b/Resources/public/js/application.js @@ -290,6 +290,14 @@ $(function () { }); } }); + $.nette.ext('forward', { + success: function (payload) { + if (payload.forward) { + window.location.href = payload.forward; + return false; + } + } + }); $.nette.init(); });