when pressing save button, close dialog see: https://github.com/MapStory/mapstory/issues/759#issuecomment-22251746