"fixed IE8 problem (maybe other IE version too): can NOT select resource"

This commit is contained in:
Ralf Becker 2009-11-24 11:55:10 +00:00
parent e3d06b2219
commit d91933ac5f

View File

@ -350,7 +350,7 @@ class ui_resources
function addOption(label,value,button_id,useable)
{
quantity = document.getElementById(button_id+'[default_qty]').value;
var quantity = document.getElementById(button_id+'[default_qty]').value;
value = value+':'+quantity;
if(quantity>useable) {
alert('".lang('You chose more resources than available')."');