Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select team after creating it. #256

Merged
merged 1 commit into from
May 10, 2019
Merged

Select team after creating it. #256

merged 1 commit into from
May 10, 2019

Conversation

brian-brazil
Copy link
Contributor

This is a common confusion. This is hacky, but we can
improve once this is on WS.

This is a common confusion. This is hacky, but we can
improve once this is on WS.
@@ -1435,6 +1435,8 @@ function createTeamsContent() {
var teamid = _crgUtils.checkSbId(teamname);
$sb("Teams.Team("+teamid+").Name").$sbSet(teamname);
newTeamName.val("").keyup().focus();
// Presume we'll have gotten the XML update within 100ms.
setTimeout(function(){selectTeam.val(teamname);}, 100);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How certain are you that 100ms is sufficient, especially when the operator screen is not on the same machine as the backend?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'll all be in the same sports hall, and thus within 1-2ms. I'd be more worried about the backend being slow.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This only selects the team in the dropdown but doesn't change the bottom part.

@frank-weinberg frank-weinberg merged commit 326ec7d into dev May 10, 2019
@brian-brazil brian-brazil deleted the new-team branch May 13, 2019 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants