Gitlab CSE Unil
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
M. Chardon
ADIM
Commits
a7e5d44f
Commit
a7e5d44f
authored
Feb 28, 2018
by
M. Chardon
Browse files
activation automatique des boutons de la barre d'outil
parent
13171f0e
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
adim_project/adim_app/static/js/anodate_app.min.js
View file @
a7e5d44f
...
...
@@ -31109,21 +31109,6 @@ function($, _, Signal, paper, config, view, io, tools, attributes, Users, export
* @param toolName The name of the activated tool
*/
function onToolActivated(toolName) {
// Ensure that the currently highlighted tool button correspond to the activated tool button.
// This is not the case if the tool is activated by the script and to by a click on the button.
// Change the states accordingly if needed
var currentButton = $("[data-tool-name]").filter("[checked=checked]");
var activatedButton = $("[data-tool-name=" + toolName + "]");
$("[data-tool-name]").button();
if (currentButton.get(0) !== activatedButton.get(0)) {
currentButton
.prop( "checked", false )
.parent(".btn").removeClass("active");
activatedButton
.attr("checked","checked")
.parent(".btn").addClass("active");
}
// Update the cursor class of the canvas element
_canvas
.removeClass(function(i,className){
adim_project/adim_app/static/js/cimaf_analysis.min.js
View file @
a7e5d44f
...
...
@@ -31111,21 +31111,6 @@ function($, _, Signal, paper, config, view, io, tools, attributes, Users, export
* @param toolName The name of the activated tool
*/
function onToolActivated(toolName) {
// Ensure that the currently highlighted tool button correspond to the activated tool button.
// This is not the case if the tool is activated by the script and to by a click on the button.
// Change the states accordingly if needed
var currentButton = $("[data-tool-name]").filter("[checked=checked]");
var activatedButton = $("[data-tool-name=" + toolName + "]");
$("[data-tool-name]").button();
if (currentButton.get(0) !== activatedButton.get(0)) {
currentButton
.prop( "checked", false )
.parent(".btn").removeClass("active");
activatedButton
.attr("checked","checked")
.parent(".btn").addClass("active");
}
// Update the cursor class of the canvas element
_canvas
.removeClass(function(i,className){
adim_project/adim_app/static/js/cimaf_app.min.js
View file @
a7e5d44f
...
...
@@ -31109,21 +31109,6 @@ function($, _, Signal, paper, config, view, io, tools, attributes, Users, export
* @param toolName The name of the activated tool
*/
function onToolActivated(toolName) {
// Ensure that the currently highlighted tool button correspond to the activated tool button.
// This is not the case if the tool is activated by the script and to by a click on the button.
// Change the states accordingly if needed
var currentButton = $("[data-tool-name]").filter("[checked=checked]");
var activatedButton = $("[data-tool-name=" + toolName + "]");
$("[data-tool-name]").button();
if (currentButton.get(0) !== activatedButton.get(0)) {
currentButton
.prop( "checked", false )
.parent(".btn").removeClass("active");
activatedButton
.attr("checked","checked")
.parent(".btn").addClass("active");
}
// Update the cursor class of the canvas element
_canvas
.removeClass(function(i,className){
adim_project/adim_app/static/js/geomo_app.min.js
View file @
a7e5d44f
...
...
@@ -31109,21 +31109,6 @@ function($, _, Signal, paper, config, view, io, tools, attributes, Users, export
* @param toolName The name of the activated tool
*/
function onToolActivated(toolName) {
// Ensure that the currently highlighted tool button correspond to the activated tool button.
// This is not the case if the tool is activated by the script and to by a click on the button.
// Change the states accordingly if needed
var currentButton = $("[data-tool-name]").filter("[checked=checked]");
var activatedButton = $("[data-tool-name=" + toolName + "]");
$("[data-tool-name]").button();
if (currentButton.get(0) !== activatedButton.get(0)) {
currentButton
.prop( "checked", false )
.parent(".btn").removeClass("active");
activatedButton
.attr("checked","checked")
.parent(".btn").addClass("active");
}
// Update the cursor class of the canvas element
_canvas
.removeClass(function(i,className){
adim_project/adim_app/static/js/newao_app.min.js
View file @
a7e5d44f
This diff is collapsed.
Click to expand it.
adim_project/adim_app/static/js/su_app.min.js
View file @
a7e5d44f
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment