OpenLayers OpenLayers

Changeset 5766

Show
Ignore:
Timestamp:
01/15/08 16:48:10 (1 year ago)
Author:
ianmayo
Message:

switch to new georss format, swap spaces for underscores in categories

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/ianmayo/branches/app2/js/commonfunc.js

    r5765 r5766  
    7070        jqItem = $(this); 
    7171         
    72         var jqTitle = jqItem.find('title'); 
     72        var jqTitle = jqItem.find('description'); 
    7373        if (jqTitle.length) { 
    7474         
     
    8888            html += '</td>'; 
    8989             
    90             var jqCategory = jqItem.find('category'); 
     90            var jqCategory = jqItem.find('title'); 
     91             
     92            // swap spaces for underscores 
     93            var thisCat = $(jqCategory).text().replace(" ", "_"); 
     94             
    9195            //  if (jqCategory.length) { 
    9296             
    9397            for (i = 0; i < categories.length; i++) { 
    94                 if (categories[i] == $(jqCategory).text())  
     98                if (categories[i] == thisCat)  
    9599                    break; 
    96100            } 
    97101            if (i == categories.length) { 
    98                 categories.push($(jqCategory).text()); 
    99                 var newCateg = '<div class="CB checkBoxChecked" categId="' + i + '">' + $(jqCategory).text()
     102                categories.push(thisCat); 
     103                var newCateg = '<div class="CB checkBoxChecked" categId="' + i + '">' + thisCat
    100104                 
    101105                newCateg += '&nbsp</div>'; 
     
    106110             
    107111            html += '<td class="category" categId="' + i + '">'; 
    108             html += '<div>' + $(jqCategory).text() + '&nbsp</div></td>'; 
     112            html += '<div>' + thisCat + '&nbsp</div></td>'; 
    109113            //}else { 
    110114