12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- function validateDownloadForm()
- {
- document.getElementById("fsync-download-1-error").style.display = "none";
- document.getElementById("fsync-download-2-error").style.display = "none";
- if(document.getElementById("input-date-start").value == '')
- {
- //document.getElementById('input-date-stop').value = new Date().toDateInputValue();
- document.getElementById("fsync-download-1-error").style.display = "block";
- return false;
- }
- if(document.getElementById("input-date-start").value > document.getElementById("input-date-stop").value)
- {
- //document.getElementById('input-date-stop').value = new Date().toDateInputValue();
- document.getElementById("fsync-download-2-error").style.display = "block";
- return false;
- }
- return true;
- }
- function submitDownloadForm()
- {
- if(validateDownloadForm())
- {
- document.getElementById('download_log_form').submit();
- }
- }
- function clearLog()
- {
- document.getElementById('clear_btn').classList.remove('btn-blue');
- document.getElementById('clear_btn').innerHTML = '<img src="View/img/loader.gif" />';
- document.getElementById('clear_log_form').submit();
- }
- function checkLatestVersion()
- {
- var xhttp;
- xhttp = new XMLHttpRequest();
- xhttp.onreadystatechange = function() {
- if (this.readyState == 4 && this.status == 200) {
- if( this.responseText != '')
- {
- document.getElementById("check_latest_version_result").innerHTML = this.responseText;
- }
- }
- };
- xhttp.open("GET", "ajax.php?random=" + Math.random() + "&action&action=checkLatestVersion",true);
- xhttp.send();
- }
|