summaryrefslogtreecommitdiffstats
path: root/public/javascripts
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-11-18 21:53:25 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-11-18 21:53:25 +0000
commitff0a91d97da0412a6b1c1b10de3858b13c3b5201 (patch)
treef150e0f12b1340d1a217b65d0d55508ea0ab4d12 /public/javascripts
parent8b6939e2f40f391df59a2a67475909fcd2828d04 (diff)
downloadredmine-ff0a91d97da0412a6b1c1b10de3858b13c3b5201.tar.gz
redmine-ff0a91d97da0412a6b1c1b10de3858b13c3b5201.zip
Use an handler instead of onsubmit attribute.
git-svn-id: http://svn.redmine.org/redmine/trunk@13616 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public/javascripts')
-rw-r--r--public/javascripts/application.js1
-rw-r--r--public/javascripts/select_list_move.js8
2 files changed, 5 insertions, 4 deletions
diff --git a/public/javascripts/application.js b/public/javascripts/application.js
index 38193b8a0..1577da6b8 100644
--- a/public/javascripts/application.js
+++ b/public/javascripts/application.js
@@ -288,7 +288,6 @@ function toggleMultiSelect(el) {
}
function submit_query_form(id) {
- selectAllOptions("selected_columns");
$('#'+id).submit();
}
diff --git a/public/javascripts/select_list_move.js b/public/javascripts/select_list_move.js
index d542ac624..db0585424 100644
--- a/public/javascripts/select_list_move.js
+++ b/public/javascripts/select_list_move.js
@@ -22,6 +22,8 @@ function moveOptionBottom(theSel) {
$(theSel).find('option:selected').detach().appendTo($(theSel));
}
-function selectAllOptions(id) {
- $('#'+id).find('option').prop('selected', true);
-}
+$(document).ready(function(){
+ $('.query-columns').closest('form').submit(function(){
+ $('#selected_columns option').prop('selected', true);
+ });
+});