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

toggle tools when shape tool or zone tool is selected, remove unused … #215

Open
wants to merge 1 commit into
base: mnt
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
toggle tools when shape tool or zone tool is selected, remove unused …
…mobile dialog reference
rds13 committed Jul 15, 2021
commit a1a737da9bcf7545c856a07492e5a8304a15d36f
15 changes: 14 additions & 1 deletion public/javascripts/spacedeck_sections.js
Original file line number Diff line number Diff line change
@@ -592,8 +592,21 @@ var SpacedeckSections = {
return;
}

if (_.contains(["mobile","shapes","zones"],id)) {
if (_.contains(["shapes","zones"],id)) {
this.deselect();
if (id == "zones") {
if (this.active_tool == "zone") {
this.active_tool = "pointer";
} else {
this.active_tool = "zone";
}
} else if (id == "shapes") {
if (this.active_tool == "shape") {
this.active_tool = "pointer";
} else {
this.active_tool = "shape";
}
}
}

this.opened_dialog=id;