44,7 → 44,30 |
} |
})(jQuery); |
</script> |
|
<script type='text/javascript'> |
$(document).ready(function(){ |
// выбор дистрибутива |
function chooseDist() { |
var distValue = $('#dist').val(); |
var tmpSelect = $('#version'); |
if(distValue.length == 0) { |
tmpSelect.attr('disabled','disabled'); |
tmpSelect.clearSelect(); |
chooseVersion(); |
} else { |
$.getJSON('./request.php',{d:distValue,status:1},function(data) { tmpSelect.fillSelect(data).attr('disabled',''); chooseVersion(); }); |
} |
}; |
// выбор версии дистрибутива |
function chooseVersion() { |
var distValue = $('#dist').val(); |
var versValue = $('#version').val(); |
if(distValue != 0 && versValue !=0 ) { |
$.get('./request.php',{d:distValue,v:versValue,status:2},function(data){ chooseReps(); }); |
} |
}; |
}); |
</script> |
"; |
|
$smarty->assign('scripts', $scripts); |