This fix falls back to svg working if the plugin cannot determine if the browser
supports svg. We should probably generate a new packed version, which I will
try to include with the css changes for flexigrid graphs.
---
wui/src/app/views/layouts/redux.rhtml | 2 +-
.../public/javascripts/jquery-svg/jquery.svg.js | 10 +++++-----
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/wui/src/app/views/layouts/redux.rhtml
b/wui/src/app/views/layouts/redux.rhtml
index 924f300..bcabe91 100644
--- a/wui/src/app/views/layouts/redux.rhtml
+++ b/wui/src/app/views/layouts/redux.rhtml
@@ -23,7 +23,7 @@
<%= javascript_include_tag "flexigrid.js" -%>
<%= javascript_include_tag "facebox.js" -%>
<%= javascript_include_tag "jquery.timers.js" -%>
- <%= javascript_include_tag "jquery-svg/jquery.svg.pack.js"
-%>
+ <%= javascript_include_tag "jquery-svg/jquery.svg.js" -%>
<!--%= javascript_include_tag "jquery-svg/jquery.svgfilter.js"
-%-->
<%= javascript_include_tag "jquery-svg/jquery.svggraph.js"
-%>
<!--%= javascript_include_tag "jquery.ui-1.5b4/ui.core.js"
-%>
diff --git a/wui/src/public/javascripts/jquery-svg/jquery.svg.js
b/wui/src/public/javascripts/jquery-svg/jquery.svg.js
index dea8794..f66663b 100644
--- a/wui/src/public/javascripts/jquery-svg/jquery.svg.js
+++ b/wui/src/public/javascripts/jquery-svg/jquery.svg.js
@@ -45,7 +45,7 @@ $.extend(SVGManager.prototype, {
'" height="' + container.clientHeight + '"
src="blank.svg"/>';
this._settings[id] = [container, loadURL, settings, onLoad];
}
- else if
(document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#SVG","1.1")
||
+ else if (true ||
document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#SVG","1.1")
||
document.implementation.hasFeature("org.w3c.svg",
"1.1")) {
svg = document.createElementNS(this.svgNS, 'svg');
svg.setAttribute('version', '1.1');
@@ -888,7 +888,7 @@ $.extend(SVGPath.prototype, {
return this;
},
- /* Draw a cubic B?zier curve.
+ /* Draw a cubic B<E9>zier curve.
@param x1 number - x-coordinate of beginning control point or
number[][] - x-/y-coordinates of control and end points
to draw to
@param y1 number - y-coordinate of beginning control point (omitted
if x1 is array)
@@ -904,7 +904,7 @@ $.extend(SVGPath.prototype, {
return this._coords((relative ? 'c' : 'C'), x1, y1, x2, y2,
x, y);
},
- /* Continue a cubic B?zier curve.
+ /* Continue a cubic B<E9>zier curve.
Starting control point is the reflection of the previous end control point.
@param x2 number - x-coordinate of ending control point or
number[][] - x-/y-coordinates of control and end points
to draw to
@@ -919,7 +919,7 @@ $.extend(SVGPath.prototype, {
return this._coords((relative ? 's' : 'S'), x2, y2, x, y);
},
- /* Draw a quadratic B?zier curve.
+ /* Draw a quadratic B<E9>zier curve.
@param x1 number - x-coordinate of control point or
number[][] - x-/y-coordinates of control and end points
to draw to
@param y1 number - y-coordinate of control point (omitted if x1 is
array)
@@ -933,7 +933,7 @@ $.extend(SVGPath.prototype, {
return this._coords((relative ? 'q' : 'Q'), x1, y1, x, y);
},
- /* Continue a quadratic B?zier curve.
+ /* Continue a quadratic B<E9>zier curve.
Control point is the reflection of the previous control point.
@param x number - x-coordinate of curve end or
number[][] - x-/y-coordinates of points to draw to
--
1.5.5.1