move way merge to a toolbox function rather than shift-click
[potlatch2.git] / net / systemeD / potlatch2 / StyleSelector.mxml
index 89e4f39d97c197563c8a98541e966def123fca4e..04566cdad0d7e98e1bf62308bfd3a894a64d573e 100644 (file)
@@ -5,7 +5,8 @@
        horizontalAlign="left" backgroundColor="white" borderStyle="inset">
        
        <mx:List width="100%" height="100%" id="mapStyle" 
-               change="Application.application.setStylesheet(mapStyle.selectedItem.label, mapStyle.selectedItem.data);"
+               labelField="name"
+               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);" />