Reformat dates. Surprisingly limited options for parsing and displaying dates.
[potlatch2.git] / net / systemeD / potlatch2 / StyleSelector.mxml
index 9e6ff10ca87216ffa4c095fd1f5d9ec66419e98a..04566cdad0d7e98e1bf62308bfd3a894a64d573e 100644 (file)
@@ -6,7 +6,7 @@
        
        <mx:List width="100%" height="100%" id="mapStyle" 
                labelField="name"
-               change="Application.application.setStylesheet(mapStyle.selectedItem.name, mapStyle.selectedItem.url);"
+               change="Application.application.styleButton.close(); Application.application.setStylesheet(mapStyle.selectedItem.name, mapStyle.selectedItem.url);"
                dataProvider="{Application.application.theController.stylesheets}" />
 
        <mx:Button label="Edit..." click="new BackgroundDialog().init('Map style',mapStyle,Application.application.theController.stylesheets);" />