Skip to content

Commit

Permalink
Bugfix 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 21, 2016
1 parent 2b4d2dc commit 1042287
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions www/tablet/js/fhem-tablet-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -1475,9 +1475,11 @@ $.fn.isExternData = function (key) {

$.fn.getReading = function (key, idx) {
var devname = String($(this).data('device')),
paraname = String($(this).data(key));
if ($.isArray(paraname))
paraname = $(this).data(key);
if ($.isArray(paraname)){
paraname = paraname[idx];
}
paraname = String(paraname);
if (paraname && paraname.match(/:/)) {
var temp = paraname.split(':');
devname = temp[0];
Expand Down
Loading

0 comments on commit 1042287

Please sign in to comment.