Don't reload the entire bbox when panning, just the newly uncovered bits.
[potlatch2.git] / potlatch2.mxml
index 32bb6d19bf733b15bb1b5787aab287d397cc3bdd..52d44d72cf58d7526ab9a2b15bc4d809dcb73c05 100644 (file)
             updateDataWorking();
         }
                private function updateDataWorking():void {
-                       if (loadcount>0 && savecount>0) { dataWorking.text="Loading/saving..."; }
-                       else if (loadcount>0)           { dataWorking.text="Loading data..."; }
-                       else if (savecount>0)           { dataWorking.text="Saving data..."; }
-                       else                            { dataWorking.text=""; }
+                       var t:String;
+                       if (loadcount>0 && savecount>0) { t="Loading/saving#..."; }
+                       else if (loadcount>0)           { t="Loading data#..."; }
+                       else if (savecount>0)           { t="Saving data..."; }
+                       else                            { t=""; }
+                       dataWorking.text=t.replace("#",(loadcount>1) ? (" ("+loadcount+")") : "");
                        dataWorking.visible=(dataWorking.text!="");
                }
         private function onDataDirty(event:Event):void {