jquery_cheats 2.0.1 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +19 -2
- data/app/assets/javascripts/jqueryCheats.js +36 -1
- data/jquery_cheats.gemspec +2 -2
- data/lib/jquery_cheats.rb +4 -0
- data/vendor/assets/excanvas.js +1438 -0
- data/vendor/assets/jquery.jqplot.css +259 -0
- data/vendor/assets/jquery.jqplot.js +10901 -0
- data/vendor/assets/plugins/jqplot.BezierCurveRenderer.js +312 -0
- data/vendor/assets/plugins/jqplot.BezierCurveRenderer.min.js +57 -0
- data/vendor/assets/plugins/jqplot.barRenderer.js +747 -0
- data/vendor/assets/plugins/jqplot.barRenderer.min.js +57 -0
- data/vendor/assets/plugins/jqplot.blockRenderer.js +234 -0
- data/vendor/assets/plugins/jqplot.blockRenderer.min.js +57 -0
- data/vendor/assets/plugins/jqplot.bubbleRenderer.js +754 -0
- data/vendor/assets/plugins/jqplot.bubbleRenderer.min.js +57 -0
- data/vendor/assets/plugins/jqplot.canvasAxisLabelRenderer.js +202 -0
- data/vendor/assets/plugins/jqplot.canvasAxisLabelRenderer.min.js +57 -0
- data/vendor/assets/plugins/jqplot.canvasAxisTickRenderer.js +242 -0
- data/vendor/assets/plugins/jqplot.canvasAxisTickRenderer.min.js +57 -0
- data/vendor/assets/plugins/jqplot.canvasOverlay.js +864 -0
- data/vendor/assets/plugins/jqplot.canvasOverlay.min.js +57 -0
- data/vendor/assets/plugins/jqplot.canvasTextRenderer.js +448 -0
- data/vendor/assets/plugins/jqplot.canvasTextRenderer.min.js +57 -0
- data/vendor/assets/plugins/jqplot.categoryAxisRenderer.js +636 -0
- data/vendor/assets/plugins/jqplot.categoryAxisRenderer.min.js +57 -0
- data/vendor/assets/plugins/jqplot.ciParser.js +115 -0
- data/vendor/assets/plugins/jqplot.ciParser.min.js +57 -0
- data/vendor/assets/plugins/jqplot.cursor.js +1093 -0
- data/vendor/assets/plugins/jqplot.cursor.min.js +57 -0
- data/vendor/assets/plugins/jqplot.dateAxisRenderer.js +702 -0
- data/vendor/assets/plugins/jqplot.dateAxisRenderer.min.js +57 -0
- data/vendor/assets/plugins/jqplot.donutRenderer.js +800 -0
- data/vendor/assets/plugins/jqplot.donutRenderer.min.js +57 -0
- data/vendor/assets/plugins/jqplot.dragable.js +224 -0
- data/vendor/assets/plugins/jqplot.dragable.min.js +57 -0
- data/vendor/assets/plugins/jqplot.enhancedLegendRenderer.js +241 -0
- data/vendor/assets/plugins/jqplot.enhancedLegendRenderer.min.js +57 -0
- data/vendor/assets/plugins/jqplot.funnelRenderer.js +938 -0
- data/vendor/assets/plugins/jqplot.funnelRenderer.min.js +57 -0
- data/vendor/assets/plugins/jqplot.highlighter.js +454 -0
- data/vendor/assets/plugins/jqplot.highlighter.min.js +57 -0
- data/vendor/assets/plugins/jqplot.json2.js +475 -0
- data/vendor/assets/plugins/jqplot.json2.min.js +57 -0
- data/vendor/assets/plugins/jqplot.logAxisRenderer.js +528 -0
- data/vendor/assets/plugins/jqplot.logAxisRenderer.min.js +57 -0
- data/vendor/assets/plugins/jqplot.mekkoAxisRenderer.js +610 -0
- data/vendor/assets/plugins/jqplot.mekkoAxisRenderer.min.js +57 -0
- data/vendor/assets/plugins/jqplot.mekkoRenderer.js +436 -0
- data/vendor/assets/plugins/jqplot.mekkoRenderer.min.js +57 -0
- data/vendor/assets/plugins/jqplot.meterGaugeRenderer.js +1029 -0
- data/vendor/assets/plugins/jqplot.meterGaugeRenderer.min.js +57 -0
- data/vendor/assets/plugins/jqplot.ohlcRenderer.js +372 -0
- data/vendor/assets/plugins/jqplot.ohlcRenderer.min.js +57 -0
- data/vendor/assets/plugins/jqplot.pieRenderer.js +899 -0
- data/vendor/assets/plugins/jqplot.pieRenderer.min.js +57 -0
- data/vendor/assets/plugins/jqplot.pointLabels.js +362 -0
- data/vendor/assets/plugins/jqplot.pointLabels.min.js +57 -0
- data/vendor/assets/plugins/jqplot.pyramidAxisRenderer.js +730 -0
- data/vendor/assets/plugins/jqplot.pyramidAxisRenderer.min.js +57 -0
- data/vendor/assets/plugins/jqplot.pyramidGridRenderer.js +423 -0
- data/vendor/assets/plugins/jqplot.pyramidGridRenderer.min.js +57 -0
- data/vendor/assets/plugins/jqplot.pyramidRenderer.js +490 -0
- data/vendor/assets/plugins/jqplot.pyramidRenderer.min.js +57 -0
- data/vendor/assets/plugins/jqplot.trendline.js +222 -0
- data/vendor/assets/plugins/jqplot.trendline.min.js +57 -0
- metadata +64 -3
data/README.md
CHANGED
@@ -5,7 +5,7 @@ library.
|
|
5
5
|
It is as easy as adding this to your Gemfile
|
6
6
|
|
7
7
|
```ruby
|
8
|
-
gem 'jquery_cheats','~>2.
|
8
|
+
gem 'jquery_cheats','~>2.1.0'
|
9
9
|
```
|
10
10
|
|
11
11
|
Then add the following to app/assets/application.js
|
@@ -47,6 +47,23 @@ This will try to find /path/to/image-hover.png as the image to use when moused o
|
|
47
47
|
|
48
48
|
The new assetpipline JavaScript makes it possible to submit form elements via data-remote calls when changed. Only the following are supported.
|
49
49
|
|
50
|
-
|
50
|
+
###Select Box
|
51
51
|
|
52
52
|
To use ajax with jquery_cheats add data-onchange="true" and data-url="/path/to"
|
53
|
+
|
54
|
+
###Radio Button
|
55
|
+
|
56
|
+
To use with jquery_cheats simply pass a URL into the data-onchange parameter, if you need to send extra parameters use data-params using a serialized
|
57
|
+
string such as(item=4&item2=3)
|
58
|
+
|
59
|
+
```erb
|
60
|
+
<%= f.radio_button "foo", foo_path, "data-onchange"=>"/path" %>
|
61
|
+
```
|
62
|
+
|
63
|
+
##Graphing
|
64
|
+
|
65
|
+
JQuery Cheats comes packaged with JQueryPlots as of 2.1.0, but some functions may not be available until later dates.
|
66
|
+
|
67
|
+
###Barchart
|
68
|
+
|
69
|
+
JQuery Cheats Barchart is the first graph to be implemented and uses XML to parse the data.
|
@@ -7,4 +7,39 @@ $(document).ready(function(){
|
|
7
7
|
success: function(data){eval(data);},
|
8
8
|
dataType: "script"});
|
9
9
|
});
|
10
|
-
|
10
|
+
//make radio buttons onclick compatible
|
11
|
+
$('input[type="radio"][data-onclick]').live("change",function()
|
12
|
+
{
|
13
|
+
var data = $(this).serialize();
|
14
|
+
if($(this).attr("data-params"))
|
15
|
+
{
|
16
|
+
data += "&"+$(this).attr("data-params");
|
17
|
+
}
|
18
|
+
$.ajax({type: "post",
|
19
|
+
url: eval($(this).attr("data-onclick")),
|
20
|
+
data: data,
|
21
|
+
success: function(data){eval(data);},
|
22
|
+
dataType: "script"});
|
23
|
+
});
|
24
|
+
});
|
25
|
+
|
26
|
+
///some helpter functions here
|
27
|
+
|
28
|
+
//####THIS ONE HELPS PROCESS XML
|
29
|
+
|
30
|
+
|
31
|
+
function BarChart(name)
|
32
|
+
{
|
33
|
+
//this is the BarChart Method
|
34
|
+
$.jqplot(name);
|
35
|
+
}
|
36
|
+
|
37
|
+
function getTicks(url)
|
38
|
+
{
|
39
|
+
//this function should get the ticks from the XML
|
40
|
+
}
|
41
|
+
|
42
|
+
function XML2Bars(url)
|
43
|
+
{
|
44
|
+
//this function aims at translating the data into a 2d array for rendering
|
45
|
+
}
|
data/jquery_cheats.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "jquery_cheats"
|
5
|
-
s.version = "2.0
|
5
|
+
s.version = "2.1.0"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Travis Pessettto"]
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.description = "JQuery Asset Pipeline tricks"
|
11
11
|
s.email = "travis@pessetto.com"
|
12
12
|
s.extra_rdoc_files = ["README.md", "lib/jquery_cheats.rb"]
|
13
|
-
s.files = Dir["{lib,app}/**/*"]+["README.md", "Rakefile", "Manifest", "jquery_cheats.gemspec"]
|
13
|
+
s.files = Dir["{lib,app,vendor}/**/*"]+["README.md", "Rakefile", "Manifest", "jquery_cheats.gemspec"]
|
14
14
|
s.homepage = "https://github.com/plowdawg/jquery_cheats"
|
15
15
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Jquery_cheats", "--main", "README.md"]
|
16
16
|
s.require_paths = ["lib"]
|