Koha/koha-tmpl/intranet-tmpl/prog/js/prevent_submit.js
Owen Leonard 5e1bcc4aa7 Bug 16242 - Move staff client JavaScript out of language directory
This patch moves the JavaScript files in prog/en/js to prog/js.
JavaScript files do not need to be in the directory which is processed
by the translator.

To test, apply the patch and visit various pages in the staff client to
confirm that JavaScript files are still loading correctly.

Revised: I intended for this to be built on top of Bug 15883 as well as
Bug 16242. Now it is.

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
On top of 15883 and 16241
All seems to work, js files pulled from new dir.
No errors

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2016-04-29 14:32:42 +00:00

11 lines
271 B
JavaScript

$(document).ready(function() {
// We don't want to apply this for the search form
$("#doc3 form").keypress(function (e) {
if( e.which == 13
&& e.target.nodeName == "INPUT"
&& e.target.type != "submit"
) {
return false;
}
});
});