jquery_cheats 4.2.0 → 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
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','~>3.0.0'
8
+ gem 'jquery_cheats','~>5.0.0'
9
9
  ```
10
10
 
11
11
  Then add the following to app/assets/application.js
@@ -72,3 +72,7 @@ string such as(item=4&item2=3)
72
72
  ##Graphing
73
73
 
74
74
  JQuery Cheats works in conjunction with [plotSimple](http://github.com/plowdawg/plotSimple) to provide you with a graphing interface.
75
+
76
+ ##Change Log
77
+
78
+ * Version 5.0 removes DOMSubtreeModified due to browser issues. Work around call barChart(id,xmlurl) in your JavaScript
@@ -1,6 +1,3 @@
1
- //*==============SPECIAL THANKS TO:===========
2
- // IX3 for his response from Stackoverflow
3
-
4
1
  $(document).ready(function() {
5
2
  //the following are for AJAX requests of form objects
6
3
  $("select[data-onchange]").live("change", function() {
@@ -33,18 +30,15 @@ $(document).ready(function() {
33
30
  $("div.piechart").each(function() {
34
31
  pieChart($(this).attr("id"), $(this).attr("data-xmlurl"));
35
32
  });
33
+
34
+ $("div.barchart").each(function() {
35
+ $(this).attr("data-barchartloaded", "1");
36
+ barChart($(this).attr("id"), $(this).attr("data-xmlurl"));
37
+ });
36
38
 
37
39
  $("div.stackedcolumn").each(function() {
38
40
  stackedColumn($(this).attr("id"), $(this).attr("data-xmlurl"))
39
41
  })
40
- //IX3 CONTRIUBTUITION
41
- updateBarCharts();
42
- //next function commented out because it causes issues with browser...will work on it....
43
- $("body").on("DOMSubtreeModified", function(e) {
44
- //console.log(e);
45
- updateBarCharts();
46
- });
47
- //CONTRIBUTION END
48
42
  //The following provide click-to-link capabilities in charts
49
43
  $("div.piechart").live('jqplotDataClick', function(ev, seriesIndex, pointIndex, data) {
50
44
  if(data[2] != "") {
@@ -142,13 +136,6 @@ function loadStackedColumns(xml)
142
136
  return partions;
143
137
  }
144
138
  //functions specific to barchart
145
- function updateBarCharts() {
146
- $("div.barchart:not([data-barchartloaded])").each(function() {
147
- $(this).attr("data-barchartloaded", "1");
148
- barChart($(this).attr("id"), $(this).attr("data-xmlurl"));
149
- })
150
- }
151
-
152
139
  function barChart(name, xmlurl) {
153
140
  $.ajax({
154
141
  url : xmlurl,
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "jquery_cheats"
5
- s.version = "4.2.0"
5
+ s.version = "5.0.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"]
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: 4.2.0
4
+ version: 5.0.0
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-07-30 00:00:00.000000000 Z
12
+ date: 2012-07-30 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
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  version: '1.2'
117
117
  requirements: []
118
118
  rubyforge_project: jquery_cheats
119
- rubygems_version: 1.8.24
119
+ rubygems_version: 1.7.2
120
120
  signing_key:
121
121
  specification_version: 3
122
122
  summary: JQuery Asset Pipeline tricks