##// END OF EJS Templates
Merged r13615 (#18777)....
Merged r13615 (#18777). git-svn-id: http://svn.redmine.org/redmine/branches/2.6-stable@13869 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r13487:c408c719976e
r13487:c408c719976e
Show More
select_list_move.js
27 lines | 781 B | application/javascript | JavascriptLexer
Toshi MARUYAMA
code layout clean up select_list_move.js...
r11513 function moveOptions(theSelFrom, theSelTo) {
Jean-Philippe Lang
Merged r13615 (#18777)....
r13487 $(theSelFrom).find('option:selected').detach().prop("selected", false).appendTo($(theSelTo));
Toshi MARUYAMA
set svn:eol-style native public/javascripts/select_list_move.js...
r8979 }
function moveOptionUp(theSel) {
Jean-Philippe Lang
Merged r13615 (#18777)....
r13487 $(theSel).find('option:selected').each(function(){
$(this).prev(':not(:selected)').detach().insertAfter($(this));
});
Toshi MARUYAMA
set svn:eol-style native public/javascripts/select_list_move.js...
r8979 }
Jean-Philippe Lang
Custom queries: buttons to move column to top and bottom (#16326)....
r12716 function moveOptionTop(theSel) {
Jean-Philippe Lang
Merged r13615 (#18777)....
r13487 $(theSel).find('option:selected').detach().prependTo($(theSel));
Jean-Philippe Lang
Custom queries: buttons to move column to top and bottom (#16326)....
r12716 }
Toshi MARUYAMA
set svn:eol-style native public/javascripts/select_list_move.js...
r8979 function moveOptionDown(theSel) {
Jean-Philippe Lang
Merged r13615 (#18777)....
r13487 $($(theSel).find('option:selected').get().reverse()).each(function(){
$(this).next(':not(:selected)').detach().insertBefore($(this));
});
Toshi MARUYAMA
set svn:eol-style native public/javascripts/select_list_move.js...
r8979 }
Jean-Philippe Lang
Custom queries: buttons to move column to top and bottom (#16326)....
r12716 function moveOptionBottom(theSel) {
Jean-Philippe Lang
Merged r13615 (#18777)....
r13487 $(theSel).find('option:selected').detach().appendTo($(theSel));
Jean-Philippe Lang
Custom queries: buttons to move column to top and bottom (#16326)....
r12716 }
Toshi MARUYAMA
code layout clean up select_list_move.js...
r11513 function selectAllOptions(id) {
Jean-Philippe Lang
Merged r13615 (#18777)....
r13487 $('#'+id).find('option').prop('selected', true);
Toshi MARUYAMA
set svn:eol-style native public/javascripts/select_list_move.js...
r8979 }