Last part of MKWS-58 (apart from documentation)
authorMike Taylor <mike@indexdata.com>
Mon, 9 Mar 2015 17:20:05 +0000 (17:20 +0000)
committerMike Taylor <mike@indexdata.com>
Mon, 9 Mar 2015 17:20:05 +0000 (17:20 +0000)
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

index cf4ed16..5ce127d 100644 (file)
@@ -159,7 +159,8 @@ mkws.registerWidgetType('records', function() {
   var m_timer;
   this.node.mousemove(function() {
     that.debug("freezing display records");
   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);
     m_frozen = true;
     clearTimeout(m_timer);
     m_timer = setTimeout(unfreezeRecordDisplay, 1000);