Commit 30c15cfc authored by Oleg Dzhimiev's avatar Oleg Dzhimiev
Browse files

updated defaults

parent cd9c687b
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ function reload() {
}
function mount_hdd(callback) {
	makeRequest('camogm_interface.php','?cmd=mount',callback);
	document.getElementById('directory').value = "/var/hdd/";
	document.getElementById('directory').value = "/mnt/sda1/";
	document.getElementById('mount_hdd_button').style.display = "none";
}

@@ -56,7 +56,7 @@ function process_mount_hdd(xmldoc) {
function mount_custom_partition(partition) {
	if (document.getElementById("mount_point").value != "") {
		makeRequest('camogm_interface.php','?cmd=mount&partition='+partition+'&mountpoint='+document.getElementById("mount_point").value,"scan_devices()");
		document.getElementById('directory').value = "/var/hdd/";
		document.getElementById('directory').value = "/mnt/sda1/";
		document.getElementById('mount_hdd_button').style.display = "none";
	}
}
@@ -137,7 +137,7 @@ function process_scan_devices(xmldoc) {
					content += "<tr><td></td><td>"+partition+"</td><td><input id='mount_point' size='8' type='text'";
					//if (partition=="/dev/hda1"){
                                        if (partition=="/dev/sda1"){
						content += " value='/var/hdd'";
						content += " value='/mnt/sda1'";
                                        }
					content += "></td><td>" + xmldoc.getElementsByTagName('size')[i].firstChild.data + "</td><td>" + '</td><td><a href="#" onClick="mount_custom_partition(\''+partition+'\');">mount</a></td></tr>';
				} else { 
@@ -158,7 +158,7 @@ function process_scan_devices(xmldoc) {

function find_selected_device(){
    for(var i=0;i<devices.length;i++){
        if (devices[i]=="/dev/hda1") selected_device = devices[i];
        if (devices[i]=="/dev/sda1") selected_device = devices[i];
        if (devices[i]=="/dev/sda1") selected_device = devices[i];
        break;
    }
+2 −2
Original line number Diff line number Diff line
@@ -344,7 +344,7 @@
					fprintf($fcmd, "prefix=%s;\n", $xml_directory);
				}
				else
					fprintf($fcmd, "prefix=%s;\n", "/var/hdd/");
					fprintf($fcmd, "prefix=%s;\n", "/mnt/sda1/");
			}
		}
				
@@ -660,7 +660,7 @@
		<p style="color:red;">not operational yet!</p>
                Detected Audio Hardware: <span id="ajax_detected_audio_hardware">loading...</span> <a href="#" onClick="check_audio_hardware();"><img src="images/reload.png" style="bottom:-2px; position:relative;"></a><br />
                <br />
                Test Audio Playback: <a href="#" onClick="test_audio_playback('/var/hdd/Congas.wav');"><img src="images/play_audio.png" style="position:relative; top:3px;"></a><br />
                Test Audio Playback: <a href="#" onClick="test_audio_playback('/mnt/sda1/Congas.wav');"><img src="images/play_audio.png" style="position:relative; top:3px;"></a><br />
                <br />
                <form method="POST" id="audioform">
                <table cellspacing="5px">