From d3986bc49df6274e6bde4b7e3253f71cd1ac60a8 Mon Sep 17 00:00:00 2001 From: Juanfran Date: Thu, 25 Jun 2015 11:44:24 +0200 Subject: [PATCH] fix restore comment button --- app/coffee/modules/common/history.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/coffee/modules/common/history.coffee b/app/coffee/modules/common/history.coffee index 1dd8e3d0..a3dbbc5f 100644 --- a/app/coffee/modules/common/history.coffee +++ b/app/coffee/modules/common/history.coffee @@ -385,7 +385,7 @@ HistoryDirective = ($log, $loading, $qqueue, $template, $confirm, $translate, $c $el.on "click", "a", (event) -> target = angular.element(event.target) href = target.attr('href') - if href.indexOf("#") == 0 + if href && href.indexOf("#") == 0 event.preventDefault() $('body').scrollTop($(href).offset().top)