gambitproject / jsgte

JavaScript GTE
GNU General Public License v2.0
14 stars 16 forks source link

payoff accepting number values only #67

Open PARAG00991 opened 8 years ago

PARAG00991 commented 8 years ago

At present when the payoff value is edited, if we try to set payoff value to be something of the form anything followed by a character eg. j90l, k99 etc. we get a prompt telling that payoff should be a number, but when we click OK, it doesn't really erase the non-numbered value and gets us back the last value i.e. after alert message also, such non-acceptable values of payoffs are visible on the screen. After this patch, if such non-acceptable values are used to set, then payoff value would automatically takes the last acceptable value that it was taking after giving the alert prompt.