From 536f84874f7d10dd0b5b97cd353543f5e3f60997 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sat, 6 Jul 2019 09:42:32 +0200 Subject: [PATCH] select client project by default when creating a new issue (#31500) --- javascripts/theme.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/javascripts/theme.js b/javascripts/theme.js index 4606209..f715370 100644 --- a/javascripts/theme.js +++ b/javascripts/theme.js @@ -78,6 +78,9 @@ function sort_table() { } function alter_new_issue_page() { + // on global new issue page select "client" project by default + $('#issue_project_id option:contains("Projets Client")').next().attr('selected', 'selected') + // limit exclamation marks $('input#issue_subject').on('keypress', function(evt) { /* initial code from * https://stackoverflow.com/questions/3579219/show-different-keyboard-character-from-the-typed-one-in-google-chrome/3580352#3580352