adding cases in switch statement for campground loop variables, now accepts letters...
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 8 Aug 2016 20:12:04 +0000 (16:12 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 8 Aug 2016 20:12:04 +0000 (16:12 -0400)
campground-map.php

index f5a2f28..efa87ff 100644 (file)
@@ -268,11 +268,25 @@ $js_categories = json_encode($categories);
             case '4':
                 site_loop_alpha = 'E';
                 break;
+            case 'A':
+                site_loop_alpha = 'A';
+                break;
+            case 'B':
+                site_loop_alpha = 'B';
+                break;
+            case 'C':
+                site_loop_alpha = 'C';
+                break;
+            case 'D':
+                site_loop_alpha = 'D';
+                break;
+            case 'E':
+                site_loop_alpha = 'E';
+                break;
             }
         } else {
             site_loop_alpha = "None";
         }
-        
         if(site_meta[site]){
             site_power = site_meta[site]['petosega_power'];
             site_power = site_power.join();
@@ -333,7 +347,7 @@ $js_categories = json_encode($categories);
         var pop_up_width = full_content_tool_tip.width() / 2;
         var pop_up_height = full_content_tool_tip.height() / 2;
          
-        console.debug(half);
+//        console.debug(half);
          
         jQuery(this).css("cursor", "pointer");
         jQuery(tool_tip[0]).show();