If no city then no comma
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 6 Jun 2013 15:49:40 +0000 (15:49 +0000)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 6 Jun 2013 15:49:40 +0000 (15:49 +0000)
Toolkit/Members/libjs/google-map.js
Toolkit/Members/templates/memberDetail.tpl
Toolkit/Members/templates/membersList.tpl

index 064aa3a..292f33e 100644 (file)
@@ -57,7 +57,11 @@ var Map = {
 
                        var html = '<table><tbody><tr>';
                        html += '<td><b>' + name + '</b><br>' +
-                                               street + '<br>' + city + ', ' + state + ' ' + zip;
+                                               street + '<br>';
+            if (city) {
+                html += city + ', ';
+            }
+            html += state + ' ' + zip;
 
                        if (phone != '') {
                                html += '<br>' + phone;
index f77d464..5f00acd 100644 (file)
@@ -22,7 +22,7 @@ catid="catid"
                        <div flexy:if="hasMailingAddy" class="type">Street Address</div>
                        <div class="street-address">{street:h}</div>
                        <div>
-                               <span class="locality">{city:h}</span>,
+                               <span class="locality" flexy:if="city">{city:h},</span>
                                <span class="region" title="{state_name:h}">
                                        {state_abbr:h}
                                </span>
index a3d0a31..2e6501f 100644 (file)
@@ -43,7 +43,7 @@
     {end:}
                        <div class="search-result-location adr">
                                <div class="street-address">{row[street]:h}</div>
-                               <span class="locality">{row[city]:h}</span>,
+                               <span class="locality" flexy:if="city">{row[city]:h},</span>
                                <span class="region" title="{row[state]:h}">{row[state_abbr]:h}</span>
                                <span class="postal-code">{row[zip]:h}</span>
                                <div flexy:if="row[phone]" class="search-result-phones">