X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=blobdiff_plain;f=src%2Fmkws-widget-main.js;h=5ce127d86d282a89ee44a61b0f28041111194cea;hp=e264ebacb1c5ba22c71a828d16db8c91c1a20e2f;hb=ce3edc6144efaf9cd36de8bb5de11d52be2472b4;hpb=43a735e20bc1f9de6943a11b432fc03094588ce5 diff --git a/src/mkws-widget-main.js b/src/mkws-widget-main.js index e264eba..5ce127d 100644 --- a/src/mkws-widget-main.js +++ b/src/mkws-widget-main.js @@ -149,19 +149,18 @@ mkws.registerWidgetType('records', function() { } var m_frozen = false; - function setRecordData(data) { + this.team.queue("records").subscribe(function(data) { m_dataToRedraw = data; if (!m_frozen) { refreshRecordData(); } - } - - this.team.queue("records").subscribe(setRecordData); + }); var m_timer; this.node.mousemove(function() { - that.info("freezing display records"); - that.node.css('opacity', 0.5); + that.debug("freezing display records"); + var op = that.config.freeze_opacity; + if (op !== undefined) { that.node.css('opacity', op); } m_frozen = true; clearTimeout(m_timer); m_timer = setTimeout(unfreezeRecordDisplay, 1000); @@ -169,7 +168,7 @@ mkws.registerWidgetType('records', function() { function unfreezeRecordDisplay() { clearTimeout(m_timer); - that.info("refreshing records"); + that.debug("refreshing records"); that.node.css('opacity', 1); m_frozen = false; refreshRecordData();