From c50ddeb7f4a41ed41bbb26f0cbc2f53ea12da26d Mon Sep 17 00:00:00 2001 From: stijnvrolijk Date: Fri, 1 Jul 2016 10:47:15 +0200 Subject: [PATCH] Only redirect if there's an action to redirect to Previously it would've redirected to 'undefined' if there was no action present It was really annoying the heck out of me... --- .../Resources/assets/coffee/framework.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SumoCoders/FrameworkCoreBundle/Resources/assets/coffee/framework.coffee b/src/SumoCoders/FrameworkCoreBundle/Resources/assets/coffee/framework.coffee index 7dd5c30..e7ae2ac 100644 --- a/src/SumoCoders/FrameworkCoreBundle/Resources/assets/coffee/framework.coffee +++ b/src/SumoCoders/FrameworkCoreBundle/Resources/assets/coffee/framework.coffee @@ -310,6 +310,7 @@ class Framework extends DefaultObject ) clickableTablerow: -> - window.document.location = $(this).closest('tr').find('.action a').attr("href") + actionUrl = $(this).closest('tr').find('.action a').attr 'href' + window.document.location = actionUrl if actionUrl window.Framework = Framework