thin_man 0.18.1 → 0.18.2

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: c0ba37c9054569618fc66b2af8290796e312015e
4
- data.tar.gz: 84d38c2c93474bdf29249d1e4ed7ded3c3d9e24a
3
+ metadata.gz: 04aaa46bca85bd1b755588f72c3ff3d891686ec2
4
+ data.tar.gz: 9c174043ddecae53b800185430d83b6d1953c346
5
5
  SHA512:
6
- metadata.gz: d01747b616ae10569a6f468c5960d0ced5663633e739d59b1b88c4d498cd324e12b13d6122a73476b3b593e157697d017f46d2eebf20fd460b6c43c0427d14ce
7
- data.tar.gz: 9aa153a90b6d3495571a4d309cee6664dbbe3c4d813d7369ca895d6994a21ecd93febc68f857cb23081991a184d72f1343027d038e7a6551f5563afa31aa4dcb
6
+ metadata.gz: 87c0f7dd303192badee533dbb466000638b7b28093552145a80172960218832fb1a45f6a122bd143a1c50338de47906af301663ec46e4d4003908091be3e0e41
7
+ data.tar.gz: 8681b8e2e3c4921235cefce2563011e006ea5a9d569705e7f6bd98d8bad23a85bb286aa1e2ca9661a843ece8daeb75a73226b9714247a5f6eef89aa5b6bc43ff
@@ -153,8 +153,9 @@ var initThinMan = function(){
153
153
  return true;
154
154
  },
155
155
  insertHtml: function(data) {
156
- debug_logger.log("thin_man.AjaxSubmission.insertHtml")
156
+ debug_logger.log("thin_man.AjaxSubmission.insertHtml target:")
157
157
  debug_logger.log(this.target)
158
+ debug_logger.log("thin_man.AjaxSubmission.insertHtml insert_method:")
158
159
  debug_logger.log(this.insert_method)
159
160
  if(this.target){
160
161
  this.target[this.insert_method](data);
@@ -188,7 +189,7 @@ var initThinMan = function(){
188
189
  return true;
189
190
  },
190
191
  ajaxSuccess: function(data,textStatus,jqXHR){
191
- debug_logger.log("thin_man.AjaxSubmission.ajaxSuccess")
192
+ debug_logger.log("thin_man.AjaxSubmission.ajaxSuccess data:")
192
193
  debug_logger.log(data)
193
194
  if(typeof data === 'string'){
194
195
  this.insertHtml(data);
@@ -258,7 +259,7 @@ var initThinMan = function(){
258
259
  })
259
260
  },
260
261
  ajaxComplete: function(jqXHR) {
261
- debug_logger.log('thin_man.AjaxSubmission.ajaxComplete')
262
+ debug_logger.log('thin_man.AjaxSubmission.ajaxComplete jqXHR:')
262
263
  debug_logger.log(jqXHR)
263
264
  this.showTrigger();
264
265
  this.notifyWatchers();
@@ -300,12 +301,17 @@ var initThinMan = function(){
300
301
  }
301
302
  },
302
303
  ajaxError: function(jqXHR) {
304
+ debug_logger.log('thin_man.AjaxSubmission.ajaxError')
303
305
  if(jqXHR.status == 409){
304
306
  try{
305
307
  var data = JSON.parse(jqXHR.responseText);
306
308
  }catch(error){
307
309
  var data = jqXHR.responseText;
308
310
  }
311
+ debug_logger.log("thin_man.AjaxSubmission.ajaxError error target:")
312
+ debug_logger.log(this.error_target)
313
+ debug_logger.log("thin_man.AjaxSubmission.ajaxError data:")
314
+ debug_logger.log(data)
309
315
  if(typeof data === 'string'){
310
316
  this.error_target.html(data);
311
317
  } else if(typeof data === 'object') {
@@ -1,3 +1,3 @@
1
1
  module ThinMan
2
- VERSION = "0.18.1"
2
+ VERSION = "0.18.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thin_man
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.1
4
+ version: 0.18.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Draut, Adam Bialek