Move content of .js.html files to .html

This commit is contained in:
Flat 2016-07-04 21:26:41 +09:00
commit 1fa3c4b3fb
43 changed files with 550 additions and 507 deletions

View file

@ -767,3 +767,29 @@
</table>
</form>
</div>
<?php insert_scripts(); ?>
<script>
function elementHideShow(elementToHideOrShow){
var el = document.getElementById(elementToHideOrShow);
el.style.display = el.style.display === 'none' ? 'block' : 'none';
}
$(document).ready(function(){
$('select[name=v_filemanager]').change(function(){
if($(this).val() == 'yes'){
$('.filemanager.description').show();
} else {
$('.filemanager.description').hide();
}
});
$('select[name=v_sftp]').change(function(){
if($(this).val() == 'yes'){
$('.sftp.description').show();
} else {
$('.sftp.description').hide();
}
});
});
</script>