projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58ab073
)
Fix select all in dimp
author
Michael M Slusarz
<slusarz@curecanti.org>
Sat, 21 Feb 2009 23:30:37 +0000
(16:30 -0700)
committer
Michael M Slusarz
<slusarz@curecanti.org>
Sat, 21 Feb 2009 23:30:37 +0000
(16:30 -0700)
imp/js/src/ViewPort.js
patch
|
blob
|
history
diff --git
a/imp/js/src/ViewPort.js
b/imp/js/src/ViewPort.js
index
ec4f6cc
..
05cd31b
100644
(file)
--- a/
imp/js/src/ViewPort.js
+++ b/
imp/js/src/ViewPort.js
@@
-820,7
+820,10
@@
var ViewPort = Class.create({
// add = (boolean) Whether to set/unset flag.
_updateClass: function(vs, flag, add)
{
- vs.get('div').each(function(d) {
+ var divs = vs.get('div'),
+ sel = new ViewPort_Selection(this._getBuffer(), 'div', divs);
+
+ divs.each(function(d) {
if (add) {
d.addClassName(flag);
} else {
@@
-828,8
+831,9
@@
var ViewPort = Class.create({
}
}, this);
+
if (this.opts.onUpdateClass) {
-
vs
.get('dataob').each(function(d) {
+
sel
.get('dataob').each(function(d) {
this.opts.onUpdateClass(d);
}, this);
}