Permalink
Browse files

Fixing issue with volume when the value is greater than or equal to 1…

…000.
  • Loading branch information...
1 parent ba52968 commit 4f2d32d5f3cdbee218f0006f503556bc28dcc938 Thomas Fowler committed Mar 30, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 yahoo/finance/yahoo.finance.options.xml
@@ -83,6 +83,7 @@
var bid;
var ask;
var vol;
+ var volStr;
var openInt;
var optTypeMatch;
@@ -107,7 +108,10 @@
changeDir = tr.td[3].span.img.@alt.toString();
bid = parseFloat( tr.td[4].span.text() );
ask = parseFloat( tr.td[5].span.text() );
- vol = parseInt( tr.td[6].span.text() );
+ volStr = tr.td[6].span.text();
+ volStr = volStr.replace( ",", "" );
+ //vol = parseInt( tr.td[6].span.text() );
+ vol = parseInt( volStr );
openInt = parseInt( tr.td[7].p.text() );
if ( changeDir.toLowerCase() == "down" )

0 comments on commit 4f2d32d

Please sign in to comment.