Use parent instead of parents
This commit is contained in:
parent
7ad086bbdf
commit
8c748505db
@ -65,7 +65,7 @@ function addDispatchLine(index, type, mode)
|
|||||||
|
|
||||||
//remove cloned select2 with duplicate id.
|
//remove cloned select2 with duplicate id.
|
||||||
$("#s2id_entrepot_"+nbrTrs+'_'+index).detach(); // old way to find duplicated select2 component
|
$("#s2id_entrepot_"+nbrTrs+'_'+index).detach(); // old way to find duplicated select2 component
|
||||||
$(".csswarehouse_"+nbrTrs+"_"+index+":first-child").parents("span.selection").parents(".select2").detach();
|
$(".csswarehouse_"+nbrTrs+"_"+index+":first-child").parent("span.selection").parent(".select2").detach();
|
||||||
|
|
||||||
/* Suffix of lines are: _ trs.length _ index */
|
/* Suffix of lines are: _ trs.length _ index */
|
||||||
$("#qty_"+nbrTrs+"_"+index).focus();
|
$("#qty_"+nbrTrs+"_"+index).focus();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user