jquery_cheats 2.2.0 → 2.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -29,6 +29,13 @@ $(document).ready(function(){
29
29
  $("div.piechart").each(function(){
30
30
  pieChart($(this).attr("id"),$(this).attr("data-xmlurl"));
31
31
  });
32
+ $("div.piechart").bind('jqplotDataClick',
33
+ function(ev,seriesIndex,pointIndex,data){
34
+ if(data[2] != "")
35
+ {
36
+ window.location = data[2];
37
+ }
38
+ });
32
39
  //bind click events to piehcart
33
40
  //start by loading the barcharts...
34
41
  $("div.barchart").each(function(){BarChart($(this).attr("id"),$(this).attr("data-xmlurl"))});
@@ -223,6 +230,9 @@ function loadSlices(xml)
223
230
  {
224
231
  slice = new Array($(this).attr("name"));
225
232
  slice.push(parseInt($(this).attr("size")));
233
+ link = $(this).attr("link");
234
+ if(link)slice.push(link);
235
+ else slice.push("");
226
236
  slices.push(slice);
227
237
  }
228
238
  );
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "jquery_cheats"
5
- s.version = "2.2.0"
5
+ s.version = "2.2.1"
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"]
9
- s.date = "2012-06-07"
9
+ s.date = "2012-06-15"
10
10
  s.description = "JQuery, JQPlot graphing, and other useful items for jquery."
11
11
  s.email = "travis@pessetto.com"
12
12
  s.extra_rdoc_files = ["README.md", "lib/jquery_cheats.rb"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jquery_cheats
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-07 00:00:00.000000000Z
12
+ date: 2012-06-15 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description: JQuery, JQPlot graphing, and other useful items for jquery.
15
15
  email: travis@pessetto.com