Skip to content

Commit

Permalink
Fix detail widget - apple hardware icon
Browse files Browse the repository at this point in the history
  • Loading branch information
bochoven committed Mar 25, 2020
1 parent f483625 commit 64541d6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions views/machine_detail_widget1.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="col-lg-4">
<div class="row">
<div class="col-xs-6">
<img class="img-responsive" src="<?php printf(conf('apple_hardware_icon_url'), substr($serial_number, 8)); ?>" />
<img id="apple_hardware_icon" class="img-responsive">
</div>
<div class="col-xs-6" style="font-size: 1.4em; overflow: hidden">
<span class="label label-info">macOS <span class="mr-os_version"></span></span><br>
Expand All @@ -14,8 +14,12 @@
</div>

<script>
// ------------------------------------ Refresh machine description

var apple_hardware_icon_url = "<?=conf('apple_hardware_icon_url')?>";
$('#apple_hardware_icon')
.attr('src', apple_hardware_icon_url.replace('%s&amp;', serialNumber.substring(8) + '&' ))

// ------------------------------------ Refresh machine description
$('.mr-refresh-desc')
.attr('href', appUrl + '/module/machine/model_lookup/' + serialNumber)
.click(function(e){
Expand Down

0 comments on commit 64541d6

Please sign in to comment.