Subversion Repositories SmartDukaan

Rev

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

Rev 14432 Rev 14434
Line 81... Line 81...
81
					} else{
81
					} else{
82
						outOfStockCount++;
82
						outOfStockCount++;
83
						$(that).parent().parent().remove();	
83
						$(that).parent().parent().remove();	
84
					}
84
					}
85
					if(!response.products[0].available_price){
85
					if(!response.products[0].available_price){
86
						outOfStockCount++;
86
						// outOfStockCount++;
87
						$(that).parent().parent().remove();	
87
						// $(that).parent().parent().remove();	
-
 
88
						var btn = $("<a class='tryagainforliveprice btn btn-xs btn-warning' title='Try Again'>Try Again</a>");
-
 
89
						$(that).html(btn);
88
					}
90
					}
89
				} else{
91
				} else{
90
					outOfStockCount++;
92
					// outOfStockCount++;
91
					$(that).parent().parent().remove();
93
					// $(that).parent().parent().remove();
-
 
94
					var btn = $("<a class='tryagainforliveprice btn btn-xs btn-warning' title='Try Again'>Try Again</a>");
-
 
95
					$(that).html(btn);
92
				}
96
				}
93
				checkForOutStocks(outOfStockCount);
97
				checkForOutStocks(outOfStockCount);
94
			},
98
			},
95
			error: function(request, status, err) {
99
			error: function(request, status, err) {
96
				//console.log(status+' '+err+' '+request);
100
				//console.log(status+' '+err+' '+request);
97
            	// if (status == "timeout") {
101
            	// if (status == "timeout") {
98
            		var btn = $("<a class='tryagainforliveprice btn btn-xs btn-warning' title='Try Again'>Try Again</a>");
102
            		var btn = $("<a class='tryagainforliveprice btn btn-xs btn-warning' title='Try Again'>Try Again</a>");
99
					$(that).html(btn)
103
					$(that).html(btn);
100
				// } else {
104
				// } else {
101
					// $(that).parent().parent().remove();
105
					// $(that).parent().parent().remove();
102
				// }
106
				// }
103
			}
107
			}
104
		});
108
		});