1. Dinu Gherman
  2. svgmap

Commits

Dinu Gherman  committed 4fe8e2f

Use uppercase of KFZ codes for filtering.

  • Participants
  • Parent commits c1ea461
  • Branches default

Comments (0)

Files changed (1)

File svgmap.js

View file
  • Ignore whitespace
     var kfz_codes = $(selector).val().split(" ");
     $(mapid + ' path[kfz]').attr('fill', 'none');
     $.each(kfz_codes, function(index, kfz) { 
-        var node = $(mapid + ' path[kfz="' + kfz + '"]'); 
+        var node = $(mapid + ' path[kfz="' + kfz.toUpperCase() + '"]'); 
         node.attr('fill', 'red');
     });
 };