Permalink
Browse files

Fix : selector conflict

  • Loading branch information...
1 parent d34fdc6 commit f8f01d3f421ee2af5062a60d79fd78459fb3e40b @lautr3k committed Aug 6, 2016
Showing with 4 additions and 2 deletions.
  1. +1 −1 index.html
  2. +3 −1 js/main.js
View
@@ -57,7 +57,7 @@
<h3 class="panel-title">Transformations</h3>
</div>
<div id="transform-body" class="panel-body collapse in">
- <div class="form-group">
+ <div class="form-group" id="transform-mirror">
<label for="transform-mirror">Mirror</label>
<input type="radio" name="transform-mirror" id="transform-mirror-yes" value="yes" /> yes
<input type="radio" name="transform-mirror" id="transform-mirror-no" value="no" checked="checked" /> no
View
@@ -871,13 +871,15 @@ function updateTransformAction() {
function updateTransformValues() {
var current = transformations[transformAction];
- var uniform = $('#transform input[type=radio]:checked').val() == 'yes';
+ var uniform = $('#transform-uniform input[type=radio]:checked').val() == 'yes';
var input = {
x: parseFloat($transformX.val()),
y: parseFloat($transformY.val()),
z: parseFloat($transformZ.val())
};
+ console.log(uniform)
+
input.x = isNaN(input.x) ? current.x : input.x;
input.y = isNaN(input.y) ? current.y : input.y;
input.z = isNaN(input.z) ? current.z : input.z;

0 comments on commit f8f01d3

Please sign in to comment.