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 +4 -4
- data/app/assets/javascripts/thin_man.js +9 -3
- data/lib/thin_man/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04aaa46bca85bd1b755588f72c3ff3d891686ec2
|
4
|
+
data.tar.gz: 9c174043ddecae53b800185430d83b6d1953c346
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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') {
|
data/lib/thin_man/version.rb
CHANGED