Skip to content

Commit

Permalink
Show default summary in the logMsg field
Browse files Browse the repository at this point in the history
When the user is making an edit with configurable message, set the description textbox value to the default message, so that the user is more likely to notice and change it.
  • Loading branch information
vtdmhd committed Jun 15, 2016
1 parent 19caee1 commit 8299ce9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Network/Gitit/Handlers.hs
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ editPage' params = do
, br
, label ! [thefor "logMsg"] << "Description of changes:"
, br
, textfield "logMsg" ! (readonly ++ [value logMsg])
, textfield "logMsg" ! (readonly ++ [value (logMsg `orIfNull` defaultSummary cfg) ])
, submit "update" "Save"
, primHtmlChar "nbsp"
, submit "cancel" "Discard"
Expand Down

0 comments on commit 8299ce9

Please sign in to comment.