Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 30th, 2012  |  syntax: None  |  size: 0.67 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. if (absenceName != 'Total') {
  2.                         pos = jQuery.inArray(absenceName, distinctColumnNames);
  3.  
  4.                         alert("Found at pos " + pos);
  5.  
  6.                         if (pos != -1) {
  7.                             alert("foo");
  8.                             // ... we need to assess whether we already have that
  9.                             // type of absence in the list of distinct absence types.
  10.                             distinctColumnNames[curColumnIndex] = absenceName;
  11.                             distinctColumnIDs[absenceName] = curColumnIndex;
  12.  
  13.                             curColumnIndex++;
  14.                         }
  15.                     }