Subversion Repositories SmartDukaan

Rev

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

Rev 1820 Rev 1821
Line 239... Line 239...
239
        var containerdiv = "#pane1";
239
        var containerdiv = "#pane1";
240
        var par = containerdiv + " input[type=checkbox]:checked";
240
        var par = containerdiv + " input[type=checkbox]:checked";
241
 
241
 
242
        $(par).each(function(){
242
        $(par).each(function(){
243
        		if(tot == 1){
243
        		if(tot == 1){
244
        			seldata +=  "mobile"+tot + "=" + $(this).val();
244
        			seldata +=  "p"+tot + "=" + $(this).val();
245
        		}else{
245
        		}else{
246
        			seldata +=  "&mobile"+tot + "=" + $(this).val();
246
        			seldata +=  "&p"+tot + "=" + $(this).val();
247
        		}
247
        		}
248
                tot ++;
248
                tot ++;
249
        });
249
        });
250
 
250
 
-
 
251
	if(tot > 5){
-
 
252
		alert("Can compare upto five products only.");
251
        if(tot > 2)     {
253
	}else if(tot > 2)     {
252
                window.location="/compare-mobile-phones?" + seldata;
254
                window.location="/compare-mobile-phones?" + seldata;
253
        } else  {
255
        } else  {
254
                alert("Please select atleast two products");
256
                alert("Please select atleast two products");
255
        }
257
        }
256
});
258
});