Commits

Owen Nelson  committed 62e6daf

minor cleanups

  • Participants
  • Parent commits 2993a50

Comments (0)

Files changed (1)

File jquery.progressive-btns.js

                                 'name': input_name };
             
             if(settings.debug){
-                // allows us to see the field
-                sender_attrs = $.extend(sender_attrs, {'type': 'text', 
-                    'readonly': true});
+                // allows us to see the field for debugging
+                sender_attrs = $.extend(sender_attrs, 
+                                        {'type': 'text', 
+                                         'readonly': true});
             }
             
+            // The sender will be used to transmit the selected value with the form on submit
             var $sender = $('<'+'input>').attr(sender_attrs);
-            var preselected = null;
+            
+            // clear the existing content and setup the hidden input
             $container.html($sender);
             
             $inputs.each(function(){