浏览代码

删除标志flag

luyanan 8 年之前
父节点
当前提交
edc4d189fe
共有 1 个文件被更改,包括 1 次插入7 次删除
  1. 1 7
      app/js/professorArticle.js

+ 1 - 7
app/js/professorArticle.js

@ -210,7 +210,6 @@ mui.plusReady(function() {
210 210
			beforeSend: function() {},
211 211
			success: function(data, textState) {
212 212
				if(data.success) {
213
					diFlag=1;
214 213
					console.log(JSON.stringify(data));
215 214
					var oNumber=document.getElementById("numerCount");
216 215
					if(oThumsflag==0){
@ -236,7 +235,7 @@ mui.plusReady(function() {
236 235
	}
237 236
	document.getElementById("thumbsUp").addEventListener("tap", function() {
238 237
	var userid = plus.storage.getItem('userid');
239
	var oUrl,diFlag=1;
238
	var oUrl;
240 239
	oThumsflag = this.getAttribute("oThumsflag");
241 240
	console.log(oThumsflag)
242 241
	if(!userid) {
@ -252,11 +251,6 @@ mui.plusReady(function() {
252 251
		});
253 252
		return;
254 253
	}
255
	if(diFlag==1){
256
		diFlag=0;
257
	}else{
258
		return;
259
	}
260 254
	(oThumsflag == 0) ? oUrl = "/ajax/article/agree": oUrl = "/ajax/article/unAgree";
261 255
	console.log(oUrl);
262 256
	thums(oUrl);