diff --git a/front/deviceDetails.php b/front/deviceDetails.php index d32a1f5c..fabccd03 100755 --- a/front/deviceDetails.php +++ b/front/deviceDetails.php @@ -146,10 +146,7 @@
-
- - -
+
@@ -159,7 +156,6 @@
-
@@ -176,7 +172,6 @@
-
@@ -196,9 +191,9 @@
- + + '> -
@@ -749,6 +742,11 @@ function main () { } }); + // Show device icon as it changes + $('#txtIcon').on('change input', function() { + $('#txtIconFA').removeClass().addClass(`fa fa-${$(this).val()} pointer`) + }); + }); }); @@ -1285,7 +1283,8 @@ function getDeviceData (readAllData=false) { $('#txtOwner').val (deviceData['dev_Owner']); $('#txtDeviceType').val (deviceData['dev_DeviceType']); $('#txtVendor').val (deviceData['dev_Vendor']); - $('#txtIcon').val (initDefault(deviceData['dev_Icon'], 'laptop')); + $('#txtIcon').val (initDefault(deviceData['dev_Icon'], 'laptop')); + $('#txtIcon').trigger('change') if (deviceData['dev_Favorite'] == 1) {$('#chkFavorite').iCheck('check');} else {$('#chkFavorite').iCheck('uncheck');} $('#txtGroup').val (deviceData['dev_Group']); @@ -1700,6 +1699,7 @@ function setTextValue (textElement, textValue) { $('#'+textElement).attr ('data-myvalue', textValue); $('#'+textElement).val (textValue); } + $('#'+textElement).trigger('change') } // ----------------------------------------------------------------------------- @@ -1818,3 +1818,9 @@ function toggleNetworkConfiguration(disable) } + + \ No newline at end of file