From 066d0bc24f98d345200d56d6dcf04f69ff686826 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Fri, 16 Jan 2009 12:33:11 -0700 Subject: [PATCH] Correctly display status flags when updating viewport. --- imp/js/src/ViewPort.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/imp/js/src/ViewPort.js b/imp/js/src/ViewPort.js index 20163ecae..e0bbc7ddc 100644 --- a/imp/js/src/ViewPort.js +++ b/imp/js/src/ViewPort.js @@ -700,6 +700,12 @@ var ViewPort = Class.create({ c_nodes.push(this.template.evaluate(r)); }, this); c.update(c_nodes.join('')); + + if (this.opts.onUpdateClass) { + rows.get('div').each(function(d) { + this.opts.onUpdateClass(d); + }, this); + } } else { // If loading a viewport for the first time, show a blank // viewport rather than the empty viewport status message. @@ -819,7 +825,7 @@ var ViewPort = Class.create({ } if (this.opts.onUpdateClass) { - this.opts.onUpdateClass(d, add); + this.opts.onUpdateClass(d); } }, this); }, -- 2.11.0