From: Mike Taylor Date: Mon, 9 Mar 2015 17:20:05 +0000 (+0000) Subject: Last part of MKWS-58 (apart from documentation) X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=ce3edc6144efaf9cd36de8bb5de11d52be2472b4;p=mkws-moved-to-github.git Last part of MKWS-58 (apart from documentation) Only fade the frozen record-display if the freeze_opacity setting is provided. If it is, then fade it to the specified level. --- diff --git a/src/mkws-widget-main.js b/src/mkws-widget-main.js index cf4ed16..5ce127d 100644 --- a/src/mkws-widget-main.js +++ b/src/mkws-widget-main.js @@ -159,7 +159,8 @@ mkws.registerWidgetType('records', function() { var m_timer; this.node.mousemove(function() { that.debug("freezing display records"); - that.node.css('opacity', 0.5); + 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);