From 7573e118875b075dfbba9e9b2638ad53ed7a6fe0 Mon Sep 17 00:00:00 2001 From: nasseeder1 Date: Tue, 2 Jul 2019 21:47:01 +0000 Subject: [PATCH] 76_SMAPortal: contrib ftui_smaportalspg.css git-svn-id: https://svn.fhem.de/fhem/trunk@19764 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- .../contrib/DS_Starter/widget_smaportalspg.js | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/fhem/contrib/DS_Starter/widget_smaportalspg.js b/fhem/contrib/DS_Starter/widget_smaportalspg.js index 1285a4ea8..e5df5fd5d 100644 --- a/fhem/contrib/DS_Starter/widget_smaportalspg.js +++ b/fhem/contrib/DS_Starter/widget_smaportalspg.js @@ -14,10 +14,28 @@ * */ +/* Versionen: + * + * 1.0.0 02.07.2019 initial version +*/ + /* global ftui:true, Modul_widget:true */ "use strict"; +function depends_smaportalspg (){ + var deps = []; + + var userCSS = $('head').find("[href$='css/fhem-tablet-ui.css']"); + + if (userCSS.length) + userCSS.before('') + else + $('head').append(''); + + return deps; +}; + var Modul_smaportalspg = function () { function init_attr(elem) { @@ -56,8 +74,6 @@ var Modul_smaportalspg = function () { ftui.sendFhemCommand(cmd) .done(function (data, dev) { //console.log('received update for dynamic html : ', $(this) ); - data = '' - + data; elem.html(data); }); }