Show submit warning in confirm dialog

Rather than using the browser's native window.confirm method to inform
users about dangerous submits, set the message inside the confirm submit
dialog's plugin endpoint. This allows the message to be more informative
and prevents extraneous multiple confirmations.
Change-Id: I3adef72761ccbf23e1da8f1aadf8a3d13b20363a
Reviewed-by: Aaron Gable <>
1 file changed
tree: ce4640b34088971413bce256797529baf8ff4c37
  1. src/
  2. BUCK
  3. BUILD
  4. codereview.settings

ChumpDetector Plugin for Gerrit

To use with the local testsite

ln -s /path/to/chumpdetector-plugin plugins/chumpdetector
NO_BUCKD=1 buck build plugins/chumpdetector && \
  cp buck-out/gen/plugins/chumpdetector/chumpdetector.jar ../gerrit_testsite/plugins/ && \
  ../gerrit_testsite/bin/ restart

To use with the polygerrit-ui server against live data

mkdir -p polygerrit-ui/app/plugins/chumpdetector
ln -s /path/to/chumpdetector-plugin/src/main/resources/static polygerrit-ui/app/plugins/chumpdetector/static
./polygerrit-ui/ -host

You may also need to edit chumpdetectorURL to point directly at instead of being relative.