Fixing js errors caused by last commit

skala
Julio Montoya 12 years ago
parent 8416176965
commit 1d76c197dc
  1. 11
      main/inc/lib/javascript/coffeewheel/wheel.js
  2. 1
      main/template/default/skill/skill_wheel.tpl

@ -2,6 +2,7 @@
/** Total width of the wheel (also counts for the height) */
$(document).ready(function() {
var w = 800,
h = w,
r = w / 2,
@ -113,12 +114,6 @@ $(document).ready(function() {
return d.depth ? d.name.split(" ")[1] || "" : "";
});
});
});
function click(d) {
path.transition()
.duration(duration)
@ -149,7 +144,7 @@ function click(d) {
d3.select(this).style("visibility", isParentOf(d, e) ? null : "hidden");
});
}
});
/* Returns whether p is parent of c */
function isParentOf(p, c) {
@ -201,3 +196,5 @@ function maxY(d) {
function brightness(rgb) {
return rgb.r * .299 + rgb.g * .587 + rgb.b * .114;
}
});

@ -11,6 +11,7 @@
<img src="">
</div>
<!--div id="dialog-form" style="display:none; z-index:9001;">
<p class="validateTips"></p>
<form class="form-horizontal" id="add_item" name="form">

Loading…
Cancel
Save