Merge branch 'master' of https://github.com/systemed/potlatch2
[potlatch2.git] / net / systemeD / potlatch2 / Toolbox.mxml
index a58c97b0d99dbfd5969416567af579831f8c6f8c..1826e26163149ffd7b50577d69ad99eba0736203 100644 (file)
                public function init(controller:EditController):void {
                        this.controller=controller;
                        /* check if the toolbox was explictly turned off in a previous session */
-                       if( SharedObject.getLocal("user_state").data['toolbox_visible'] == false) {
+                       if( SharedObject.getLocal("user_state","/").data['toolbox_visible'] == false) {
                          this.visible = false;
                        }
                }
                
                public function toggle():void {
                        this.visible=!this.visible;
-                       var obj:SharedObject = SharedObject.getLocal("user_state");
+                       var obj:SharedObject = SharedObject.getLocal("user_state","/");
                        obj.setProperty("toolbox_visible",this.visible);
                        obj.flush();
                }