smart_table 0.0.9 → 0.0.10

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f4e47371d7d1983b8b3576b2a68bfcf2cbb49fa205cd53a279fa7c8c9f32ec49
4
- data.tar.gz: e8c894597e4f0f542312b1c16a3307421b00c287316bd98bfa57b485cc886b90
3
+ metadata.gz: 02b6b707547d6895fed29be80288c8bb004904a36bfd14b5aae306c52563556e
4
+ data.tar.gz: c83da251e1459742653d182e4cbd95a89b8f3be4725563311a403632768573a5
5
5
  SHA512:
6
- metadata.gz: f8b691fca8052f533664b7a448066a1d132263fc63287ee36b659195c8ab1fb63370e380f6f0128c614acf6dfe5ffb567e14803f91263838f50a366d49181b4d
7
- data.tar.gz: b3ed85987781f88f6108603cbf5194beb517e9b3028e604bdc0f24754dc4df75cc7272f3a4589baeb66dcc4806ab0aac0866d649d8e44923ca403ed75394ea2f
6
+ metadata.gz: fccaee458a10f48c746cb7cb624c7ff2abc08aeb7de123f138e642b505c18d7dad6d7bf937f3bc0f08b1058b5c3cdf56bcb38b1c9db2bc9ec6ff18fc1882b676
7
+ data.tar.gz: 757ba343b60f07cd1f77fda2e0138216de563bdfea3ccd2f517a093d0e68758d445bf86b748d7a65bca4d35bbb82ee3bb5418766b6a04750a8b8f17fc336f7dd
@@ -127,6 +127,7 @@ SmartTable.ajaxUpdate = function(url, replaceableElementSelector) {
127
127
  // makes AJAX get request
128
128
  var xhr = new XMLHttpRequest();
129
129
  xhr.open('GET', url);
130
+ xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest"); // so rails knows it is ajax request using request.xhr?
130
131
  xhr.onload = function() {
131
132
  if (xhr.status === 200) {
132
133
  // parses response
@@ -1,3 +1,3 @@
1
1
  module SmartTable
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smart_table
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henrique Gubert
@@ -188,6 +188,7 @@ files:
188
188
  - "./lib/smart_table/version.rb"
189
189
  - "./smart_table-0.0.7.gem"
190
190
  - "./smart_table-0.0.8.gem"
191
+ - "./smart_table-0.0.9.gem"
191
192
  - "./smart_table.gemspec"
192
193
  - "./spec/dummy_app/Rakefile"
193
194
  - "./spec/dummy_app/app/assets/config/manifest.js"