mirror of
https://github.com/cytopia/devilbox.git
synced 2024-12-25 15:31:05 +00:00
19 lines
740 B
JavaScript
19 lines
740 B
JavaScript
|
var predefined_lengths = null;
|
||
|
var sizesLength = false;
|
||
|
|
||
|
function checkLengths(sValue,idx) {
|
||
|
if(predefined_lengths) {
|
||
|
if(sizesLength==false) {
|
||
|
sizesLength = predefined_lengths.length;
|
||
|
}
|
||
|
for(var i=0;i<sizesLength;i++) {
|
||
|
if(sValue.toString().toUpperCase()==predefined_lengths[i].toString().toUpperCase()) {
|
||
|
document.getElementById("lengths"+idx).value='';
|
||
|
document.getElementById("lengths"+idx).disabled='on';
|
||
|
return;
|
||
|
}
|
||
|
}
|
||
|
document.getElementById("lengths"+idx).disabled='';
|
||
|
}
|
||
|
}
|