Skip to content

Commit

Permalink
Bugfix (again) to use numeric only device names (solves #176)
Browse files Browse the repository at this point in the history
  • Loading branch information
knowthelist committed Dec 22, 2016
1 parent 7c59263 commit 5226751
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions www/tablet/js/fhem-tablet-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -387,8 +387,8 @@ var ftui = {
$('.gridster > ul > li:has(.center)').addClass('vbox');
// max height for inner boxes
$('.gridster > ul > li:has(.vbox)').addClass('vbox');
$('.gridster > ul > li > .hbox').addClass('center');
$('.gridster > ul > li > .vbox').addClass('center');
$('.gridster > ul > li .hbox').addClass('center');
$('.gridster > ul > li .vbox').addClass('center');
$('.gridster li > header ~ .hbox:only-of-type').each(function (index) {
$(this).css({
'height': 'calc(100% - ' + $(this).siblings('header').outerHeight() + 'px)'
Expand Down Expand Up @@ -1439,8 +1439,8 @@ $.fn.filterData = function (key, value) {
$.fn.filterDeviceReading = function (key, device, param) {
return this.filter(function () {
var elem = $(this);
var value = String(elem.data(key));
return (value === param && String(elem.data('device')) === device) ||
var value = elem.data(key);
return (String(value) === param && String(elem.data('device')) === device) ||
(value === device + ':' + param) ||
($.inArray(param, value) > -1 && String(elem.data('device')) === device) ||
($.inArray(device + ':' + param, value) > -1);
Expand Down
Loading

0 comments on commit 5226751

Please sign in to comment.