Merge remote-tracking branch 'upstream/4.3' into 4.3-4.4-2013-11-11-10-44-51
[civicrm-core.git] / js / jquery / jquery.crmasmselect.js
index 902e09907f14a71d3dd41996a962356f74545e84..ffee488329987e11beefc1f2bc189b7ad3260faa 100644 (file)
                                // initialize the alternate select multiple
 
                                // this loop ensures uniqueness, in case of existing crmasmSelects placed by ajax (1.0.3)
-                               while($("#" + options.containerClass + index).size() > 0) index++; 
+                               while($("#" + options.containerClass + index).size() > 0) index++;
 
                                $select = $("<select></select>")
                                        .addClass(options.selectClass)
                                        .attr('name', options.selectClass + index)
-                                       .attr('id', options.selectClass + index); 
+                                       .attr('id', options.selectClass + index);
 
-                               $selectRemoved = $("<select></select>"); 
+                               $selectRemoved = $("<select></select>");
 
                                $ol = $("<" + options.listType + "></" + options.listType + ">")
                                        .addClass(options.listClass)
-                                       .attr('id', options.listClass + index); 
+                                       .attr('id', options.listClass + index);
 
                                $container = $("<div></div>")
                                        .addClass(options.containerClass) 
                                        'id': optionId,
                                        'item': $ol.children("[rel=" + optionId + "]"),
                                        'type': type
-                               }]); 
+                               }]);
                        }
 
                        init();
                });
        };
 
-})(jQuery); 
+})(jQuery);
+