Changeset 360 for wp-slimstat-ex
- Timestamp:
- 07/05/08 14:39:08 (6 months ago)
- Location:
- wp-slimstat-ex/trunk/js
- Files:
-
- 2 modified
-
ajax-slimstat-jquery.js (modified) (2 diffs)
-
ajax-slimstat-proto.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-slimstat-ex/trunk/js/ajax-slimstat-jquery.js
r319 r360 125 125 request:function() { 126 126 // var self = this; 127 jQuery.ajax({ 127 if (SlimLoading.doing_ajax) 128 SlimLoading.doing_ajax.abort(); 129 SlimLoading.doing_ajax = jQuery.ajax({ 130 async : true, 128 131 type : 'GET', 129 132 processData: false, … … 131 134 data: SlimLoading.par, 132 135 error: function(){ 136 }, 137 complete : function(){ 138 SlimLoading.doing_ajax = null; 133 139 }, 134 140 cache: true, -
wp-slimstat-ex/trunk/js/ajax-slimstat-proto.js
r319 r360 1 1 /* Ajax-SlimStat */ 2 2 var SlimStat = { 3 doing_ajax: null, 3 4 cnt: "^_^", 4 5 filter:function(){ … … 63 64 SlimLoading.prototype = { 64 65 initialize: function(hash){ 66 if (SlimStat.doing_ajax) 67 SlimStat.doing_ajax.transport.abort(); 65 68 this.hash = hash; 66 69 var pars = hash.split(SlimStat.cnt); … … 107 110 request: function(){ 108 111 this.tid.fader.options.onComplete = this.reset.bind(this); 109 new Ajax.Updater(this.tid.id, this.url, {method: 'get', parameters: this.par, onComplete: this.after.bind(this) });112 SlimStat.doing_ajax = new Ajax.Updater(this.tid.id, this.url, {method: 'get', parameters: this.par, onComplete: this.after.bind(this) }); 110 113 }, 111 114 reset: function(){ … … 127 130 after: function(){ 128 131 this.loading.style.display = 'none'; 132 SlimStat.doing_ajax = null; 129 133 this.tid.fader.custom(0.4, 0.99); 130 134 }
