From 078ab008009f75e3be1f4cf094abea458c4cc8cd Mon Sep 17 00:00:00 2001 From: Caspar Armster Date: Sun, 24 Jul 2016 22:55:12 +0200 Subject: [PATCH] =?UTF-8?q?[FIX]=20className.add=20gibt=20es=20nicht=20dah?= =?UTF-8?q?er=20classList.add=20verwendet=20und=20firmwarePage.onUpdate=5F?= =?UTF-8?q?1()=20wieder=20in=20populateA()=20umgewandelt,=20bis=20der=20ga?= =?UTF-8?q?nze=20JS=20code=20ein=20rewrite=20erh=C3=A4lt...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- firmware.php | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/firmware.php b/firmware.php index 9b008f5..ce590dc 100644 --- a/firmware.php +++ b/firmware.php @@ -99,7 +99,7 @@ $community_id = $_REQUEST['id']; } s6.href = '#' s6.classList.remove('disabled', 'btn-primary', 'btn-danger', 'btn-warning', 'btn-success') - s6.className.add('btn-primary', 'disabled') + s6.classList.add('btn-primary', 'disabled') s6.textContent = 'Download Firmware' img_router_front.src = 'router_images/keinbild.jpg' img_router_back.src = 'router_images/keinbild.jpg' @@ -147,7 +147,7 @@ $community_id = $_REQUEST['id']; } s6.href = '#' s6.classList.remove('disabled', 'btn-primary', 'btn-danger', 'btn-warning', 'btn-success') - s6.className.add('btn-primary', 'disabled') + s6.classList.add('btn-primary', 'disabled') s6.textContent = 'Download Firmware' img_router_front.src = 'router_images/keinbild.jpg' img_router_back.src = 'router_images/keinbild.jpg' @@ -184,7 +184,7 @@ $community_id = $_REQUEST['id']; } s6.href = '#' s6.classList.remove('disabled', 'btn-primary', 'btn-danger', 'btn-warning', 'btn-success') - s6.className.add('btn-primary', 'disabled') + s6.classList.add('btn-primary', 'disabled') s6.textContent = 'Download Firmware' img_router_front.src = newImageFront img_router_back.src = newImageBack @@ -244,7 +244,7 @@ $community_id = $_REQUEST['id']; } s6.href = '#' s6.classList.remove('disabled', 'btn-primary', 'btn-danger', 'btn-warning', 'btn-success') - s6.className.add('btn-primary', 'disabled') + s6.classList.add('btn-primary', 'disabled') s6.textContent = 'Download Firmware' } function populateE () { @@ -256,46 +256,46 @@ $community_id = $_REQUEST['id']; if (s5.value.lastIndexOf('Jbeta') != -1) { id = parseInt(s5.value.slice(0, s5.value.length - 4)) link = router_json[id].betafactorylink - linkclass = ' btn-warning' + linkclass = 'btn-warning' } if (s5.value.lastIndexOf('Jbroken') != -1) { id = parseInt(s5.value.slice(0, s5.value.length - 6)) link = router_json[id].brokenfactorylink - linkclass = ' btn-danger' + linkclass = 'btn-danger' } if (s5.value.lastIndexOf('Jexp') != -1) { id = parseInt(s5.value.slice(0, s5.value.length - 3)) link = router_json[id].experimentalfactorylink - linkclass = ' btn-warning' + linkclass = 'btn-warning' } if (s5.value.lastIndexOf('Jstable') != -1) { id = parseInt(s5.value.slice(0, s5.value.length - 6)) link = router_json[id].stablefactorylink - linkclass = ' btn-success' + linkclass = 'btn-success' } if (s5.value.lastIndexOf('Nbeta') != -1) { id = parseInt(s5.value.slice(0, s5.value.length - 4)) link = router_json[id].betasysupgradelink - linkclass = ' btn-warning' + linkclass = 'btn-warning' } if (s5.value.lastIndexOf('Nbroken') != -1) { id = parseInt(s5.value.slice(0, s5.value.length - 6)) link = router_json[id].brokensysupgradelink - linkclass = ' btn-danger' + linkclass = 'btn-danger' } if (s5.value.lastIndexOf('Nexp') != -1) { id = parseInt(s5.value.slice(0, s5.value.length - 3)) link = router_json[id].experimentalsysupgradelink - linkclass = ' btn-warning' + linkclass = 'btn-warning' } if (s5.value.lastIndexOf('Nstable') != -1) { id = parseInt(s5.value.slice(0, s5.value.length - 6)) link = router_json[id].stablesysupgradelink - linkclass = ' btn-success' + linkclass = 'btn-success' } s6.href = link s6.classList.remove('disabled', 'btn-primary', 'btn-danger', 'btn-warning', 'btn-success') - s6.className.add(linkclass) + s6.classList.add(linkclass) s6.textContent = 'Download Firmware' } @@ -349,7 +349,7 @@ $community_id = $_REQUEST['id'];

Router Hersteller

- @@ -379,6 +379,7 @@ $community_id = $_REQUEST['id'];
+