From ce3edc6144efaf9cd36de8bb5de11d52be2472b4 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Mon, 9 Mar 2015 17:20:05 +0000 Subject: [PATCH] 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. --- src/mkws-widget-main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 1.7.10.4