This commit is contained in:
halcyon
2015-04-18 12:30:45 +08:00
parent a269c43d1c
commit 75e1ea7f7d
8 changed files with 457 additions and 149 deletions

View File

@@ -70,10 +70,13 @@ function move(from, to, from_o, to_o) {
});
}
function move_left(from, to) {
function move_left(from, to, from_o, to_o) {
$("#" + from + " option").each(function () {
if ($(this).prop("selected") == true) {
$("#" + to).append(this);
if( typeof from_o !== 'undefined'){
$("#"+to_o).append($("#"+from_o +" option[value='"+this.value+"']"));
}
}
$(this).attr("selected",'true');
});