Skip to content

Commit

Permalink
unraid.net fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Squidly271 committed Oct 21, 2020
1 parent 102e722 commit d176286
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
Binary file added archive/ca.turbo-2020.10.21-x86_64-1.txz
Binary file not shown.
7 changes: 5 additions & 2 deletions plugins/ca.turbo.plg
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<!DOCTYPE PLUGIN [
<!ENTITY name "ca.turbo">
<!ENTITY author "Andrew Zawadzki">
<!ENTITY version "2020.01.26">
<!ENTITY md5 "42f112ba5fdde6e42455189a0c6186fc">
<!ENTITY version "2020.10.21">
<!ENTITY md5 "087d6ec0db32ae1cbf900041d11decec">
<!ENTITY launch "Settings/Turbo">
<!ENTITY plugdir "/usr/local/emhttp/plugins/&name;">
<!ENTITY github "Squidly271/ca.turbo">
Expand All @@ -13,6 +13,9 @@
<PLUGIN name="&name;" author="&author;" version="&version;" launch="&launch;" pluginURL="&pluginURL;" icon='tachometer'>

<CHANGES>
###2020.10.21
- Compatibility Fixes

###2020.01.26
- Fixed: Only max 10 disks were allowed to be spun down

Expand Down
18 changes: 9 additions & 9 deletions source/ca.turbo/usr/local/emhttp/plugins/ca.turbo/Turbo.page
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ foreach ($unRaidDisks as $disk) {
?>

<script>
var URL = "/plugins/ca.turbo/include/exec.php";
var caURL = "/plugins/ca.turbo/include/exec.php";

$(function() {
if ( "<?=$installedVersion?>" < "<?=$upgradeVersion?>" ) { $('#update').show(); }
Expand All @@ -54,13 +54,13 @@ $(function() {


setInterval(function() {
$.post(URL,{action:'status'},function(data) {
$.post(caURL,{action:'status'},function(data) {
if (data) {
$("#miscScript").html(data);
}
});
},3000);
$.post(URL,{action:'initSchedule'}, function(data) {
$.post(caURL,{action:'initSchedule'}, function(data) {
if (data) {
$("#schedule").html(data);
$(".schedules").change(function() { changeApply(); });
Expand All @@ -73,7 +73,7 @@ $(function() {

function changeApply() {
var schedule = getSchedules();
$.post(URL,{action:'validateSchedule',schedule:schedule},function(data) {
$.post(caURL,{action:'validateSchedule',schedule:schedule},function(data) {
if ( data != "ok" ) {
$("#debugging").html(data);
$("#applyButton").prop("disabled",true);
Expand Down Expand Up @@ -119,7 +119,7 @@ function getScheduleX(x) {
function applySettings() {
var settings = getSettings();
var schedule = getSchedules();
$.post(URL,{action:'apply',settings:settings,schedule:schedule},function(data) {
$.post(caURL,{action:'apply',settings:settings,schedule:schedule},function(data) {
if (data) {
$("#applyButton").prop("disabled",true);
$("#debugging").html(data);
Expand Down Expand Up @@ -163,7 +163,7 @@ function getSchedules(ignore = "-1") {

function addSchedule() {
var allSchedules = getSchedules();
$.post(URL,{action:'addSchedule',schedule:allSchedules},function(data) {
$.post(caURL,{action:'addSchedule',schedule:allSchedules},function(data) {
if (data) {
$("#schedule").html(data);
$(".schedules").change(function() { changeApply(); });
Expand All @@ -174,7 +174,7 @@ function addSchedule() {

function deleteSchedule(x) {
var allSchedules = getSchedules(x);
$.post(URL,{action:'showSchedule',schedule:allSchedules}, function(data) {
$.post(caURL,{action:'showSchedule',schedule:allSchedules}, function(data) {
if (data) {
$("#schedule").html(data);
$(".schedules").change(function() { changeApply(); });
Expand All @@ -184,7 +184,7 @@ function deleteSchedule(x) {
}
function showSchedule() {
var allSchedules = getSchedules();
$.post(URL,{action:'showSchedule',schedule:allSchedules}, function(data) {
$.post(caURL,{action:'showSchedule',schedule:allSchedules}, function(data) {
if (data) {
$("#schedule").html(data);
$(".schedules").change(function() { changeApply(); });
Expand All @@ -194,7 +194,7 @@ function showSchedule() {

function killSchedule() {
$("#killSchedule").prop("disabled",true);
$.post(URL,{action:'killSchedule'});
$.post(caURL,{action:'killSchedule'});
}

</script>
Expand Down

0 comments on commit d176286

Please sign in to comment.