jquery_cheats 5.2.1 → 5.2.2
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.
@@ -5,13 +5,19 @@ $(document).ready(function() {
|
|
5
5
|
return false;
|
6
6
|
}
|
7
7
|
});*/
|
8
|
-
$(
|
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]").
|
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]').
|
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").
|
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").
|
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').
|
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];
|
data/jquery_cheats.gemspec
CHANGED
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.
|
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-
|
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
|