fix restore comment button

stable
Juanfran 2015-06-25 11:44:24 +02:00
parent 6c3bf5e7a0
commit d3986bc49d
1 changed files with 1 additions and 1 deletions

View File

@ -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)