jlog-rails 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YjU5YTc2YjU0NThiODU3MTllMjhlNTFlNGZkYWY2ODYwODQ1ZTRiOA==
4
+ MDE0NTU4YmE1MzNmMDA0NGQ0NjI4YWU1NTQyMGYyZTgyYjcwYzg0YQ==
5
5
  data.tar.gz: !binary |-
6
- Y2E5OGE2MWJkODA0MWI0ZTgyMzBjZTE2ZTQ2Mjg1ZmUzOGExNGQxMw==
6
+ NjMwODliZTEwZGNmZjBjNzg2OTk4NzNhNzlkZTJkNGQwM2RmNWIwMw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NTg2Y2Y2ZWM2MDYxOTE1YjE0NjNmYTlkODEwNGQ1ZWI1ZDE0M2RhYWM5MWFj
10
- ODE4NjE1OTZiMWYyMGUwNWFlZGY3Yzg4NjZiMjI0YTE0NmE1MDNjNWRiMDhi
11
- ZDgzNTQ2NDc1YTZjZjZmMmEwMTQwNTAyMWM1Y2ViZDdlNmNkZWY=
9
+ NGY2NDA2ZGVmYTM3MjU4NjQ5ZTM3NDQwNzM4NmYyNjQ2OWY0YmJmOWQyMGE5
10
+ N2M5ODk1OWJkNmMzMGEyYmYwZmFmYWFlYWM5NTlmZjVhMWUwM2UyOTRmM2Vl
11
+ ZTI5MjgyMjM5NmJiZjIyYTVmYzM4MjAzYjkzYTc2YWJkN2FmNDc=
12
12
  data.tar.gz: !binary |-
13
- YTU1ZjZhM2VhNmI4MzUwMTI2ODQyNThiNTIxZjU3M2VhMzFhMjMyOTk4YWM5
14
- MTFmYjg3ZDRmZmJmMWVkZTVjZTgzOWE2MGFlMGJmMzQ2OTI3MjA0NTFmMDhi
15
- MGIxMGViNDQyZGJkZDUwYTI1N2Q1M2NjMzJmNmI5ZjRiNzQxOGQ=
13
+ ZDk4OTBiNzBkOGI3OTRhZjllM2JlZDk3YzJhZDFhMmJlYjYxOWQyMTJjOGJl
14
+ NDBhZWIzZWJmMDc1ZmUzZDY3NmEwMTAwZWRjZGJkNDdmMTYwOTVjZjY0MGQ0
15
+ OTE1ODFjMjcxMTMwNDdiZmM3NWU0YmU4YTU2ZDNiYjk0YjViOTQ=
data/README.md CHANGED
@@ -22,7 +22,9 @@ On the client-side:
22
22
 
23
23
  Changelog:
24
24
  ----------
25
-
25
+ * 0.1.3
26
+ * Set jQuery $.ajax 'global' setting to false to prevent the global handlers
27
+ like ajaxStart or ajaxStop from being triggered.
26
28
  * 0.1.1
27
29
  * Cleaned JLog.JS code
28
30
  * 0.1.0
data/lib/jlog/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Jlog
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
@@ -207,11 +207,17 @@ JLog.AjaxAppender = function(url) {
207
207
  }
208
208
 
209
209
  function sendRequest(postData, callback) {
210
- $.post(url, postData, "json")
211
- .complete(function() {
210
+ $.ajax({
211
+ type: 'POST',
212
+ url: url,
213
+ data: postData,
214
+ dataType: 'json',
215
+ global: false,
216
+ complete: function() {
212
217
  if (waitForResponse) sending = false;
213
218
  if (callback) callback(true);
214
- });
219
+ }
220
+ });
215
221
  }
216
222
 
217
223
  function sendAllRemaining() {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jlog-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Helios Technologies
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-03-20 00:00:00.000000000 Z
11
+ date: 2013-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jquery-rails