fix problem if user preference was set to Yahoo (I'm so much looking forward to getti...
authorRichard Fairhurst <richard@systemed.net>
Sat, 27 Nov 2010 17:21:47 +0000 (17:21 +0000)
committerRichard Fairhurst <richard@systemed.net>
Sat, 27 Nov 2010 17:21:47 +0000 (17:21 +0000)
potlatch2.mxml

index c01e734805cffc1e6deb2e0ba3b11989cdb18950..32d5fe308af37d79c7aab5ea24b5b91a768d83c2 100644 (file)
                }
                
                public function setBackground(bg:Object):void {
-                       if (bg.url=='yahoo') { theMap.setBackground(''); yahoo.show(); }
-                                       else { theMap.setBackground(bg); yahoo.hide(); }
+                       if (bg.url=='yahoo') { theMap.setBackground({url:''}); yahoo.show(); }
+                                       else { theMap.setBackground(bg      ); yahoo.hide(); }
                        theController.imagerySelected=bg;
                        var obj:SharedObject = SharedObject.getLocal("user_state");
                        obj.setProperty('background_url' ,String(bg.url));