XMTT 7 ans auparavant
Parent
commit
238cc1454a
1 fichiers modifiés avec 15 ajouts et 6 suppressions
  1. 15 6
      js/discover.js

+ 15 - 6
js/discover.js

@ -174,8 +174,12 @@ $(function() {
174 174
				"pageNo":pageNo
175 175
			},
176 176
			"beforeSend": function() {
177
				$(".table-body").append('<img src="../images/loading.gif" class="loading" />');
177
				// $(".table-body").append('<img src="../images/loading.gif" class="loading" />');
178
                $("#table-item-"+index).parent().find(".continue").css("pointer-events", "none");
178 179
			},
180
			"complete":function () {
181
                $("#table-item-"+index).parent().find(".continue").css("pointer-events", "");
182
            },
179 183
			"success" : function(data) {
180 184
				if (data.success){
181 185
					var idItem=0
@ -196,7 +200,6 @@ $(function() {
196 200
						}
197 201
					}else{
198 202
						$("#table-item-"+idItem).html(strNo);
199
						$("#table-item-"+idItem).parent().find(".tcdPageCode").hide();
200 203
					}
201 204
					//分页
202 205
					if(isbind==true){
@ -230,7 +233,11 @@ $(function() {
230 233
				"ex":exculdeId2s,
231 234
            },
232 235
            "beforeSend": function() {
233
                $(".table-body").append('<img src="../images/loading.gif" class="loading" />');
236
                // $(".table-body").append('<img src="../images/loading.gif" class="loading" />');
237
                $("#table-item-0").parent().find(".continue").css("pointer-events", "none");
238
            },
239
			"complete":function () {
240
                $("#table-item-0").parent().find(".continue").css("pointer-events", "");
234 241
            },
235 242
            "success" : function(data) {
236 243
                if (data.success){
@ -258,7 +265,6 @@ $(function() {
258 265
                        }
259 266
                    }else{
260 267
                        $("#table-item-0").html(strNo);
261
                        $("#table-item-0").parent().find(".tcdPageCode").hide();
262 268
                    }
263 269
                    //分页
264 270
                    if(isbind==true){
@ -291,8 +297,12 @@ $(function() {
291 297
				"rows":rows
292 298
			},
293 299
			"beforeSend": function() {
294
				$(".table-body").append('<img src="../images/loading.gif" class="loading" />');
300
				// $(".table-body").append('<img src="../images/loading.gif" class="loading" />');
301
                $("#table-item-3").parent().find(".continue").css("pointer-events", "none");
295 302
			},
303
			"complete":function () {
304
                $("#table-item-3").parent().find(".continue").css("pointer-events", "");
305
            },
296 306
			"success" : function(data) {
297 307
				if (data.success){
298 308
                    var dataStr=data.data;
@ -310,7 +320,6 @@ $(function() {
310 320
                        }
311 321
					}else{
312 322
						$("#table-item-3").html(strNo);
313
						$("#table-item-3").parent().find(".tcdPageCode").hide();
314 323
					}
315 324
					//分页
316 325
                    if(isbind==true){