|
@@ -1015,7 +1015,7 @@ img {
|
|
|
return false;
|
|
|
}
|
|
|
if(RatingPower!="" && RatingPower!=0){
|
|
|
- if(MaxChargingPower > RatingPower)
|
|
|
+ if(parseFloat(MaxChargingPower) > parseFloat(RatingPower))
|
|
|
{
|
|
|
alert("Max Charging Power must be less than RatingPower("+RatingPower+")!");
|
|
|
document.getElementById("MaxChargingPower").focus();
|
|
@@ -1037,7 +1037,7 @@ img {
|
|
|
return false;
|
|
|
}
|
|
|
if(RatingCurrent!="" && RatingCurrent!=0){
|
|
|
- if(MaxChargingCurrent > RatingCurrent)
|
|
|
+ if(parseFloat(MaxChargingCurrent) > parseFloat(RatingCurrent))
|
|
|
{
|
|
|
alert("Max Charging Current must be less than RatingCurrent("+RatingCurrent+")!");
|
|
|
document.getElementById("MaxChargingCurrent").focus();
|
|
@@ -1053,7 +1053,7 @@ img {
|
|
|
}
|
|
|
}
|
|
|
if(AcRatingCurrent!="" && AcRatingCurrent!=0){
|
|
|
- if(AcMaxChargingCurrent > AcRatingCurrent)
|
|
|
+ if(parseFloat(AcMaxChargingCurrent) > parseFloat(AcRatingCurrent))
|
|
|
{
|
|
|
alert("Ac Max Charging Current must be less than Ac Rating Current("+RatingCurrent+")!");
|
|
|
document.getElementById("AcMaxChargingCurrent").focus();
|