Changeset 21bca2f in osmose-frontend


Ignore:
Timestamp:
Oct 31, 2012 7:05:40 PM (5 years ago)
Author:
Frédéric Rodrigo <frodrigo@…>
Branches:
master
Children:
3274bb2
Parents:
395974d
Message:

Clean up level change js code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • static/map/map.js

    r3aad5cc r21bca2f  
    337337 
    338338// Change level 
    339 function change_item_display(l, enable) { 
    340     disabled = !enable; 
    341     hidden = enable ? null : "hidden"; 
    342     color = enable ? "black" : "#999999"; 
     339function change_item_display(l) { 
    343340    $("div#tests li").each(function () { 
    344341        id = parseInt($(this).attr('id').replace(/item_desc/, '')); 
     
    353350function change_level_display() { 
    354351    var new_level = document.getElementById('level').value; 
    355  
    356352    if (new_level == "") { 
    357         change_item_display("1,2,3", true); 
     353        change_item_display("1,2,3"); 
    358354    } else { 
    359         // change_item_display("1,2,3", false); 
    360         change_item_display(new_level, true); 
     355        change_item_display(new_level); 
    361356    } 
    362357} 
Note: See TracChangeset for help on using the changeset viewer.