Koha/koha-tmpl
Jonathan Druart d56a275c0d Bug 14070: Prevent to save a letter if an error occurred
On saving a letter, if the title or the content of a template is not
defined, a JS alert is raised. But the form is submitted anyway.
This patch prevent the form to be submitted.

Test plan:
- Create or edit a letter
- Fill the title for a template, not the content
- Save
- Confirm you get the alert and that the form is not submitted

http://bugs.koha-community.org/show_bug.cgi?id=14070

Signed-off-by: Indranil Das Gupta <indradg@gmail.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2015-06-17 09:55:40 -03:00
..
intranet-tmpl Bug 14070: Prevent to save a letter if an error occurred 2015-06-17 09:55:40 -03:00
opac-tmpl Bug 14360: Unescaped variable causes alert pop-up 2015-06-11 10:04:41 -03:00
favicon.ico
index.html
intranet.html
opac.html