minor change
authormonishdeb <monish.deb@webaccessglobal.com>
Fri, 18 Jul 2014 17:30:53 +0000 (23:00 +0530)
committermonishdeb <monish.deb@webaccessglobal.com>
Fri, 18 Jul 2014 17:30:53 +0000 (23:00 +0530)
templates/CRM/common/stateCountry.tpl

index 4afb8f4b61a2e7d6fd4aa253eae3725e13859891..90f7274d5842ea8475e752288f8d0d90fe1d3261 100644 (file)
           $.getJSON(info.callback, {_value: $(this).val()}, function(data) {
             var options = '';
             $.each(data, function() {
-              if (this.value) {
+              if (this.name) {
                 options += '<option value="' + this.value + '">' + this.name + '</option>';
               }
             });
             info.target.html(options).val(val).trigger('change');
           });
         }
-      } else {
-        info.target.trigger('change');
       }
     }
     {/literal}