Skip to content

Commit

Permalink
Prevent the default click event on preview reload
Browse files Browse the repository at this point in the history
The reload preview button always caused the whole page to be reloaded because the event was never told to stop default event.
  • Loading branch information
tvdeyen committed Jan 18, 2018
1 parent fc0f994 commit 36121ae
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ Alchemy.PreviewWindow =
$reload = $('#reload_preview_button')
key 'alt+r', =>
@refresh()
$reload.click =>
$reload.click (e) =>
e.preventDefault()
@refresh()

_calculateWidth: ->
Expand Down

0 comments on commit 36121ae

Please sign in to comment.