Subversion Repositories SmartDukaan

Rev

Rev 14936 | Rev 14969 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 14936 Rev 14952
Line 212... Line 212...
212
	    		// console.log('killing ajax call '+i);
212
	    		// console.log('killing ajax call '+i);
213
	    		livePriceCalls[i].abort();
213
	    		livePriceCalls[i].abort();
214
	    	}
214
	    	}
215
	    }
215
	    }
216
		$('#loadingModal').modal();
216
		$('#loadingModal').modal();
-
 
217
		if($(this).data('source')==2){
-
 
218
			//in case of flipkart, close popup after 5 seconds
-
 
219
			setTimeout(function(){ $('#loadingModal').modal('hide'); }, 1000*5);			
-
 
220
		}
217
		// console.log($(this).data('id'));
221
		// console.log($(this).data('id'));
218
		var url = apihost+"clicks/add/"+me+"/"+$(this).data('id')+'/'+$(this).data('source')+'/?url='+encodeURIComponent($(this).data('url'))+'&price='+$(this).data('price');
222
		var url = apihost+"clicks/add/"+me+"/"+$(this).data('id')+'/'+$(this).data('source')+'/?url='+encodeURIComponent($(this).data('url'))+'&price='+$(this).data('price');
219
		$.ajax({
223
		$.ajax({
220
			url: url,
224
			url: url,
221
			// The name of the callback parameter, as specified by the YQL service
225
			// The name of the callback parameter, as specified by the YQL service