2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-12 16:46:35 +00:00

fhemweb_fbcalllist.js: reverting r9006 as still needed, when group attrib is set in FB_CALLLIST. Fixing definition names containing a dot (.) (Forum: #41544)

git-svn-id: https://svn.fhem.de/fhem/trunk@9346 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch 2015-10-02 19:30:04 +00:00
parent 5804798d8a
commit c0f0e031e2

View File

@ -1,5 +1,16 @@
// $Id$
// WORKAROUND - should be removed if a more suitable solution is found
// remove all similar informid's in all parent elements to ensure further updates.
//
// neccessary if general attribute "group" is set.
$(function () {
$("div[arg=fbcalllist][informid]").each(function (index, obj) {
name = $(obj).attr("dev");
$(obj).parents('[informid="'+name+'"]').removeAttr("informid");
});
});
function FW_processCallListUpdate(data)
{
var table = $(this).find("table.fbcalllist").first();
@ -73,7 +84,7 @@ function FW_FbCalllistCreate(elName, devName, vArr, currVal, set, params, cmd)
{
if(vArr[0] == "fbcalllist")
{
var newEl = $('div[informid='+devName+']').get(0);
var newEl = $('div[informid="'+devName+'"]').get(0);
newEl.setValueFn = FW_processCallListUpdate;