snaptable 0.9.2 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6bd8291f543218777308ee8de4923ca7cc757ad5
4
- data.tar.gz: 7ec66ac6f70de4149ed003451d4222b24f0c1d21
3
+ metadata.gz: 4a19a2c1a6d4b3ff9d7feb2f2b00b16340d270de
4
+ data.tar.gz: e62032e3e29745cff520cb909069813e31825c1f
5
5
  SHA512:
6
- metadata.gz: a1feb85764ce41f0f547e4f601135ac435bd620e929ccd272cb2d2d084c4e24b21a90e077ec9e37a02bc1a067a64250ea9b0931a4b9cc6e23ae653fdb30d5107
7
- data.tar.gz: a4c60f0727b94c7a28ec779f4a17f67e896989c8b8aa4b9891a4803b38d3f76aef14216b514ca621b5a28bc6b7d2abc974b8c741f8af96f0b8eb0ec0444d1f1f
6
+ metadata.gz: deb203f35cd3da48b6690faf700a076f77f7c79be8a37d2df3b19d59f4a5468cfb713a313b37531ea2149acf289d25e4c8c17761529e15aafa114076afe14dc7
7
+ data.tar.gz: 6435a0d6a8771bf1ca201ccf6ce93ba1ff95214a31dcc3387452850ea69b0541ffbad2efe5c01e5c8b291a4075b146ec0719fbb2ef8ed8fae623cfc15119fbc0
@@ -33,12 +33,14 @@ function snapifyTable() {
33
33
  });
34
34
 
35
35
  // Double click
36
- snaptable.on("dblclick", "tbody tr", function() {
37
- var id = $(this).data("url");
38
- if ( typeof id !== "undefined" ) {
39
- window.location = path + id + "/edit";
40
- }
41
- });
36
+ if(editButton.length) {
37
+ snaptable.on("dblclick", "tbody tr", function() {
38
+ var id = $(this).data("url");
39
+ if ( typeof id !== "undefined" ) {
40
+ window.location = path + id + "/edit";
41
+ }
42
+ });
43
+ }
42
44
 
43
45
  }
44
46
 
@@ -1,3 +1,3 @@
1
1
  module Snaptable
2
- VERSION = "0.9.2"
2
+ VERSION = "0.9.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snaptable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - khcr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-28 00:00:00.000000000 Z
11
+ date: 2015-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails