jquery_cheats 5.2.1 → 5.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,13 +5,19 @@ $(document).ready(function() {
5
5
  return false;
6
6
  }
7
7
  });*/
8
- $(\"a[data-back]\").live(\"click\",
8
+ $("a[data-submit]").on({
9
+ click:function()
10
+ {
11
+ $("form").submit();
12
+ return false;
13
+ }});
14
+ $("a[data-back]").on("click",
9
15
  function(){
10
16
  var ref = document.referrer;
11
17
  document.location=ref;
12
18
  });
13
19
  //the following are for AJAX requests of form objects
14
- $("select[data-onchange]").live("change", function() {
20
+ $("select[data-onchange]").on("change", function() {
15
21
  $.ajax({
16
22
  type : "post",
17
23
  url : $(this).attr("data-url"),
@@ -22,7 +28,7 @@ $(document).ready(function() {
22
28
  dataType : "script"
23
29
  });
24
30
  });
25
- $('input[type="radio"][data-onclick]').live("change", function() {
31
+ $('input[type="radio"][data-onclick]').on("change", function() {
26
32
  data = $(this).serialze();
27
33
  if($(this).attr("data-params")) {
28
34
  data += "&" + $(this).attr("data-params");
@@ -51,18 +57,18 @@ $(document).ready(function() {
51
57
  stackedColumn($(this).attr("id"), $(this).attr("data-xmlurl"))
52
58
  })
53
59
  //The following provide click-to-link capabilities in charts
54
- $("div.piechart").live('jqplotDataClick', function(ev, seriesIndex, pointIndex, data) {
60
+ $("div.piechart").on('jqplotDataClick', function(ev, seriesIndex, pointIndex, data) {
55
61
  if(data[2] != "") {
56
62
 
57
63
  window.location = data[2];
58
64
  }
59
65
  });
60
- $("div.barchart").live('jqplotDataClick', function(ev, seriesIndex, pointIndex, data) {
66
+ $("div.barchart").on('jqplotDataClick', function(ev, seriesIndex, pointIndex, data) {
61
67
  if(data[2] != "") {
62
68
  window.location = data[2];
63
69
  }
64
70
  });
65
- $('div.stackedcolumn').live('jqplotDataClick',
71
+ $('div.stackedcolumn').on('jqplotDataClick',
66
72
  function (ev, seriesIndex, pointIndex, data) {
67
73
  //loaded from a global array in loadLinks...FixMe!
68
74
  window.location = links[seriesIndex];
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{jquery_cheats}
3
- s.version = "5.2.1"
3
+ s.version = "5.2.2"
4
4
 
5
5
  s.required_ruby_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
6
6
  s.authors = %q{Travis Pessetto}
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: 5.2.1
4
+ version: 5.2.2
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: 2013-05-02 00:00:00.000000000 Z
12
+ date: 2013-05-06 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Useful items for JQUERY and an Asset Pipeline genrator
15
15
  email: travis@pessetto.com