Merge pull request #6278 from eileenmcnaughton/CRM-16882
[civicrm-core.git] / js / jquery / jquery.crmasmselect.js
index 609b899611628e408bd1afe226196be7de9a224d..9b1dc314ff78b08639cb314f2c3d673c6a0b4796 100644 (file)
                                // add an <option> to the <select>
                                // used only by buildSelect()
 
-                               if(disabled == undefined) var disabled = false;
+                               if(disabled == undefined) disabled = false;
 
                                var $O = $('#' + optionId);
                                var $option = $("<option>" + $O.text() + "</option>")
                                        parentName = parentName.split(' ')[0];
                                        parentId = $('.option-'+parentName).attr('rel');
                                        addListItem(parentId);
-                                       };
-                               };
+                                       }
+                               }
                        }
 
                        function addListItemShow($item) {
 
                                // remove an item from the html list
 
-                               if(highlightItem == undefined) var highlightItem = true;
+                               if(highlightItem == undefined) highlightItem = true;
                                var $O = $('#' + optionId);
 
                                $O.prop('selected', false);