mirror of
https://github.com/j-a-n/raspberrymatic-addon-rmupdate.git
synced 2023-10-10 13:37:40 +02:00
Merge pull request #19 from litti/master
Remove the RaspberryMatic specific firmware-section if the rmupdate addon is installed on a CCU3
This commit is contained in:
commit
33881db100
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.idea
|
@ -281,7 +281,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
latest_firmware = fw.version;
|
||||
latest_firmware_supported = fw.supported;
|
||||
}
|
||||
if (fw.installed) current_firmware = fw.version;
|
||||
if (fw.installed) {
|
||||
current_firmware = fw.version;
|
||||
if (current_firmware.length <= 8) {
|
||||
//ccu3 and not raspberrymatic because of short version string
|
||||
$('#firmware_header').hide();
|
||||
$('#firmware_summary').hide();
|
||||
$('#firmware_list').hide();
|
||||
}
|
||||
}
|
||||
var color = 'yellow';
|
||||
if (fw.latest) color = 'green';
|
||||
if (fw.installed) color = 'gray';
|
||||
@ -1019,15 +1027,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h2 class="ui header">
|
||||
<h2 id="firmware_header" class="ui header">
|
||||
<i class="settings icon"></i>
|
||||
<div data-i18n="firmwares" class="content">
|
||||
</div>
|
||||
</h2>
|
||||
<div class="ui list" id="firmware-summary">
|
||||
<div id="firmware_summary" class="ui list" id="firmware-summary">
|
||||
</div>
|
||||
|
||||
<div class="dimmable">
|
||||
<div id="firmware_list" class="dimmable">
|
||||
<div id="dimmer-firmware-info" class="ui active inverted dimmer">
|
||||
<div class="ui loader" data-i18n="loading"></div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user