Commits

Takafumi Arakaki  committed 78228f4
  • Participants
  • Parent commits 877f278

Comments (0)

Files changed (1)

File neorg/static/neorg.coffee

 #### Dynamically load text area to edit current page
 #
 # This function will be invoked by clicking `a.page-action-edit`
-neorgEdit = ->
+neorgEdit = (e) ->
+  e.preventDefault()
   $("#edit-form-wrapper").html "<p>Loading...</p>"
   $.ajax
     url: "_edit_form"
       $("#edit-form-wrapper").html data
       $("#edit-form-textarea").focus()
       return
-  return false
 
 
 #### Initialize everything for a neorg page