##// END OF EJS Templates
Merged r14977 from trunk to 2.6-stable (#21569)...
Merged r14977 from trunk to 2.6-stable (#21569) Request at least nokogiri 1.6.7.1 because of security advisories. Patch by Jan Schulz-Hofen. git-svn-id: http://svn.redmine.org/redmine/branches/2.6-stable@14992 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r13487:c408c719976e
r14610:315aa35c0c0f
Show More
select_list_move.js
27 lines | 781 B | application/javascript | JavascriptLexer
function moveOptions(theSelFrom, theSelTo) {
$(theSelFrom).find('option:selected').detach().prop("selected", false).appendTo($(theSelTo));
}
function moveOptionUp(theSel) {
$(theSel).find('option:selected').each(function(){
$(this).prev(':not(:selected)').detach().insertAfter($(this));
});
}
function moveOptionTop(theSel) {
$(theSel).find('option:selected').detach().prependTo($(theSel));
}
function moveOptionDown(theSel) {
$($(theSel).find('option:selected').get().reverse()).each(function(){
$(this).next(':not(:selected)').detach().insertBefore($(this));
});
}
function moveOptionBottom(theSel) {
$(theSel).find('option:selected').detach().appendTo($(theSel));
}
function selectAllOptions(id) {
$('#'+id).find('option').prop('selected', true);
}