nitdoc: Added action to commit button when we are in "edit mode", its
function display a commit form. Add a another function to close this
form.