X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=blobdiff_plain;f=src%2Fmkws-widget-main.js;h=446fe75c463a490f08e3333f34cad28ee24b3483;hp=3986c16fa21b04ac72796964cc3841cbf7f6975c;hb=4ac151034e2dd7ddc8b0732aa575c8486cb449f0;hpb=7610fdb0a2ebc53d9e9f960bbd9f2c806ec3d738 diff --git a/src/mkws-widget-main.js b/src/mkws-widget-main.js index 3986c16..446fe75 100644 --- a/src/mkws-widget-main.js +++ b/src/mkws-widget-main.js @@ -159,8 +159,8 @@ mkws.registerWidgetType('records', function() { } this.team.queue("records").subscribe(setRecordData); - - this.node.mouseenter(function() { + + this.node.mousemove(function() { that.info("freezing display records"); that.node.css('opacity', 0.5); m_frozen = true; @@ -173,6 +173,23 @@ mkws.registerWidgetType('records', function() { refreshRecordData(); }); +/* + var m_busy = false; + this.node.mousemove(function() { + if (!m_busy) { + m_busy = true; + that.info("making semi-transparent in 0.001 s"); + that.node.fadeTo(1, 0.5, function() { + that.info("making opaque in 2 s"); + that.node.fadeTo(2000, 1, function() { + that.info("done making opaque"); + m_busy = false; + }); + }); + } + }); +*/ + that.autosearch(); });