summaryrefslogtreecommitdiffstats
path: root/public/javascripts/select_list_move.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/javascripts/select_list_move.js')
-rw-r--r--public/javascripts/select_list_move.js8
1 files changed, 5 insertions, 3 deletions
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);
+ });
+});