Latest Neocron News and Information
- New test server patch #563 has been released to Vedeena
Difference between revisions of "Metadata:Mapping/Map.js"
From Neocron Wiki
(Fecking IE7 fixes) |
|||
Line 2: | Line 2: | ||
// Function to hide unsed map key elements | // Function to hide unsed map key elements | ||
− | function hideMapKey( | + | function hideMapKey(class_name) |
{ | { | ||
// Check the map areas for the class | // Check the map areas for the class | ||
− | if ($kjq('area.'+ | + | if ($kjq('area.'+class_name).length==0) |
{ | { | ||
// Not found anything - so hide it on the map | // Not found anything - so hide it on the map | ||
− | $kjq('li.'+ | + | $kjq('li.'+class_name+'_key').hide(); |
} | } | ||
} | } |