Provide indication that folder levels are being loaded
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 15 Dec 2009 00:42:47 +0000 (17:42 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 15 Dec 2009 00:42:47 +0000 (17:42 -0700)
imp/js/DimpBase.js

index 164c6d9..9ffbf3e 100644 (file)
@@ -2147,12 +2147,17 @@ var DimpBase = {
             });
 
             if (need.size()) {
+                if (mode == 'tog') {
+                    base.down('A').update(DIMP.text.loading);
+                }
                 this._listFolders({
                     all: Number(mode == 'expall'),
                     callback: this._toggleSubFolder.bind(this, base, mode, noeffect),
                     view: need
                 });
                 return;
+            } else if (mode == 'tog') {
+                base.down('A').update(base.retrieve('l'));
             }
         }