projects
/
mkws-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Progress of MKWS-58.
[mkws-moved-to-github.git]
/
src
/
mkws-widget-main.js
diff --git
a/src/mkws-widget-main.js
b/src/mkws-widget-main.js
index
c18b21b
..
3af2257
100644
(file)
--- a/
src/mkws-widget-main.js
+++ b/
src/mkws-widget-main.js
@@
-160,18
+160,23
@@
mkws.registerWidgetType('records', function() {
this.team.queue("records").subscribe(setRecordData);
this.team.queue("records").subscribe(setRecordData);
- this.node.mouseenter(function() {
+ var m_timer;
+ this.node.mousemove(function() {
that.info("freezing display records");
that.node.css('opacity', 0.5);
m_frozen = true;
that.info("freezing display records");
that.node.css('opacity', 0.5);
m_frozen = true;
+ clearTimeout(m_timer);
+ m_timer = setTimeout(unfreezeRecordDisplay, 1000);
});
});
- this.node.mouseleave(function() {
+ function unfreezeRecordDisplay() {
+ clearTimeout(m_timer);
that.info("refreshing records");
that.node.css('opacity', 1);
m_frozen = false;
refreshRecordData();
that.info("refreshing records");
that.node.css('opacity', 1);
m_frozen = false;
refreshRecordData();
- });
+ }
+ this.node.mouseleave(unfreezeRecordDisplay);
/*
var m_busy = false;
/*
var m_busy = false;