Subversion Repositories SmartDukaan

Rev

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

Rev 15310 Rev 15311
Line 205... Line 205...
205
	    	}
205
	    	}
206
	    }
206
	    }
207
		$('#loadingModal').modal();
207
		$('#loadingModal').modal();
208
		if($(this).data('source')==2){
208
		if($(this).data('source')==2){
209
			//in case of flipkart, close popup after 5 seconds
209
			//in case of flipkart, close popup after 5 seconds
210
			setTimeout(function(){ $('#loadingModal').modal('hide'); }, 1000*5);			
210
			setTimeout(function(){ $('#loadingModal').modal('hide');$('#customMessageModal').modal('hide'); }, 1000*10);			
211
		}
211
		}
212
		var store = $(this).data('source');
212
		var store = $(this).data('source');
213
		var url = apihost+"clicks/add/"+me+"/"+$(this).data('id')+'/'+$(this).data('source')+'/?url='+encodeURIComponent($(this).data('url'))+'&price='+$(this).data('price');
213
		var url = apihost+"clicks/add/"+me+"/"+$(this).data('id')+'/'+$(this).data('source')+'/?url='+encodeURIComponent($(this).data('url'))+'&price='+$(this).data('price');
214
		$.ajax({
214
		$.ajax({
215
			url: url,
215
			url: url,
Line 232... Line 232...
232
						}
232
						}
233
						if(response.showmessage == 1) {
233
						if(response.showmessage == 1) {
234
							$('#loadingModal').modal('hide');
234
							$('#loadingModal').modal('hide');
235
							$('#customMessage').html(response.message);
235
							$('#customMessage').html(response.message);
236
							$('#customMessageModal').modal('show');							
236
							$('#customMessageModal').modal('show');							
237
							setTimeout(function(){ $('#customMessageModal').modal('hide'); document.location = response.url;}, 1000*3);			
237
							setTimeout(function(){ document.location = response.url;}, 1000*3);			
238
						} else{
238
						} else{
239
							document.location = response.url;	
239
							document.location = response.url;	
240
						}
240
						}
241
					} else {
241
					} else {
242
						document.location = response.url;
242
						document.location = response.url;