more turn restriction stuff, and checkboxes, and a bunch of little fixes
[potlatch2.git] / net / systemeD / potlatch2 / mapfeatures / editors / TurnRestrictionEditor.mxml
index b007f97983deea1539e0d660d8e02440e99a0ee4..c5ee509136aa972eb110ad511f63c721f7744381 100755 (executable)
@@ -15,7 +15,6 @@
   <mx:Script><![CDATA[
        import net.systemeD.halcyon.connection.*;
        import net.systemeD.potlatch2.*;
-       import mx.managers.PopUpManager;
        import mx.core.*;
 
        /* ** FIXME: some of this is common with RouteEditor.mxml. We can probably refactor */
                for each(var relation:Object in matchedRelations) {
                        var icon:TurnRestrictionIcon = new TurnRestrictionIcon();
                        icon.setTurnRestriction(relation);
-                       
-                       icon.addEventListener(MouseEvent.CLICK, turnRestrictionClicked);
                        turnRestrictionIcons.addChild(icon);
                }
        }
-       
-       public function turnRestrictionClicked(event:Event):void {
-               var relation:Object = TurnRestrictionIcon(event.currentTarget).turnRestriction;
-               var panel:RelationEditorPanel = RelationEditorPanel(
-                       PopUpManager.createPopUp(Application(Application.application), RelationEditorPanel, true));
-               panel.setRelation(relation["relation"]);
-               PopUpManager.centerPopUp(panel);
-       }
 
        public function addNewTurnRestriction():void {
                var conn:Connection = Connection.getConnectionInstance();