### Eclipse Workspace Patch 1.0
#P DrupalHEAD
Index: misc/collapse.js
===================================================================
RCS file: /cvs/drupal/drupal/misc/collapse.js,v
retrieving revision 1.17
diff -u -r1.17 collapse.js
--- misc/collapse.js	29 Jan 2008 10:58:25 -0000	1.17
+++ misc/collapse.js	8 Mar 2008 00:42:53 -0000
@@ -1,7 +1,7 @@
 // $Id: collapse.js,v 1.17 2008/01/29 10:58:25 goba Exp $
 
 /**
- * Toggle the visibility of a fieldset using smooth animations
+ * Toggle the visibility of a fieldset using smooth animations.
  */
 Drupal.toggleFieldset = function(fieldset) {
   if ($(fieldset).is('.collapsed')) {
@@ -19,7 +19,7 @@
         $('div.action', fieldset).show();
       },
       step: function() {
-        // Scroll the fieldset into view
+        // Scroll the fieldset into view.
         Drupal.collapseScrollIntoView(this.parentNode);
       }
     });
@@ -53,17 +53,17 @@
 Drupal.behaviors.collapse = function (context) {
   $('fieldset.collapsible > legend:not(.collapse-processed)', context).each(function() {
     var fieldset = $(this.parentNode);
-    // Expand if there are errors inside
+    // Expand if there are errors inside.
     if ($('input.error, textarea.error, select.error', fieldset).size() > 0) {
       fieldset.removeClass('collapsed');
     }
 
     // Turn the legend into a clickable link and wrap the contents of the fieldset
-    // in a div for easier animation
+    // in a div for easier animation.
     var text = this.innerHTML;
       $(this).empty().append($('<a href="#">'+ text +'</a>').click(function() {
         var fieldset = $(this).parents('fieldset:first')[0];
-        // Don't animate multiple times
+        // Don't animate multiple times.
         if (!fieldset.animating) {
           fieldset.animating = true;
           Drupal.toggleFieldset(fieldset);
Index: misc/drupal.js
===================================================================
RCS file: /cvs/drupal/drupal/misc/drupal.js,v
retrieving revision 1.42
diff -u -r1.42 drupal.js
--- misc/drupal.js	6 Feb 2008 19:38:26 -0000	1.42
+++ misc/drupal.js	8 Mar 2008 00:42:53 -0000
@@ -3,7 +3,7 @@
 var Drupal = Drupal || { 'settings': {}, 'behaviors': {}, 'themes': {}, 'locale': {} };
 
 /**
- * Set the variable that indicates if JavaScript behaviors should be applied
+ * Set the variable that indicates if JavaScript behaviors should be applied.
  */
 Drupal.jsEnabled = document.getElementsByTagName && document.createElement && document.createTextNode && document.documentElement && document.getElementById;
 
@@ -81,17 +81,17 @@
   }
 
   if (args) {
-    // Transform arguments before inserting them
+    // Transform arguments before inserting them.
     for (var key in args) {
       switch (key.charAt(0)) {
-        // Escaped only
+        // Escaped only.
         case '@':
           args[key] = Drupal.checkPlain(args[key]);
         break;
-        // Pass-through
+        // Pass-through.
         case '!':
           break;
-        // Escaped and placeholder
+        // Escaped and placeholder.
         case '%':
         default:
           args[key] = Drupal.theme('placeholder', args[key]);
@@ -210,7 +210,7 @@
 };
 
 /**
- * Unfreeze the body height
+ * Unfreeze the body height.
  */
 Drupal.unfreezeHeight = function () {
   $('#freeze-height').remove();
@@ -231,7 +231,7 @@
  */
 Drupal.getSelection = function (element) {
   if (typeof(element.selectionStart) != 'number' && document.selection) {
-    // The current selection
+    // The current selection.
     var range1 = document.selection.createRange();
     var range2 = range1.duplicate();
     // Select all text.
@@ -264,11 +264,11 @@
   return message;
 }
 
-// Global Killswitch on the <html> element
+// Global Killswitch on the <html> element.
 if (Drupal.jsEnabled) {
-  // Global Killswitch on the <html> element
+  // Global Killswitch on the <html> element.
   document.documentElement.className = 'js';
-  // 'js enabled' cookie
+  // 'js enabled' cookie.
   document.cookie = 'has_js=1; path=/';
   // Attach all behaviors.
   $(document).ready(function() {
Index: misc/progress.js
===================================================================
RCS file: /cvs/drupal/drupal/misc/progress.js,v
retrieving revision 1.20
diff -u -r1.20 progress.js
--- misc/progress.js	4 Jan 2008 11:53:21 -0000	1.20
+++ misc/progress.js	8 Mar 2008 00:42:53 -0000
@@ -53,7 +53,7 @@
  */
 Drupal.progressBar.prototype.stopMonitoring = function () {
   clearTimeout(this.timer);
-  // This allows monitoring to be stopped from within the callback
+  // This allows monitoring to be stopped from within the callback.
   this.uri = null;
 };
 
@@ -74,14 +74,14 @@
       data: '',
       dataType: 'json',
       success: function (progress) {
-        // Display errors
+        // Display errors.
         if (progress.status == 0) {
           pb.displayError(progress.data);
           return;
         }
-        // Update display
+        // Update display.
         pb.setProgress(progress.percentage, progress.message);
-        // Schedule next timer
+        // Schedule next timer.
         pb.timer = setTimeout(function() { pb.sendPing(); }, pb.delay);
       },
       error: function (xmlhttp) {
Index: misc/tableheader.js
===================================================================
RCS file: /cvs/drupal/drupal/misc/tableheader.js,v
retrieving revision 1.16
diff -u -r1.16 tableheader.js
--- misc/tableheader.js	30 Jan 2008 10:17:39 -0000	1.16
+++ misc/tableheader.js	8 Mar 2008 00:42:54 -0000
@@ -92,7 +92,7 @@
         this.viewHeight = 0;
         tracker(this);
       });
-      // Reset timer
+      // Reset timer.
       time = null;
     }, 250);
   };
Index: misc/autocomplete.js
===================================================================
RCS file: /cvs/drupal/drupal/misc/autocomplete.js,v
retrieving revision 1.23
diff -u -r1.23 autocomplete.js
--- misc/autocomplete.js	4 Jan 2008 11:53:21 -0000	1.23
+++ misc/autocomplete.js	8 Mar 2008 00:42:53 -0000
@@ -1,7 +1,7 @@
 // $Id: autocomplete.js,v 1.23 2008/01/04 11:53:21 goba Exp $
 
 /**
- * Attaches the autocomplete behavior to all required fields
+ * Attaches the autocomplete behavior to all required fields.
  */
 Drupal.behaviors.autocomplete = function (context) {
   var acdb = [];
@@ -29,7 +29,7 @@
 };
 
 /**
- * An AutoComplete object
+ * An AutoComplete object.
  */
 Drupal.jsAC = function (input, db) {
   var ac = this;
@@ -44,53 +44,53 @@
 };
 
 /**
- * Handler for the "keydown" event
+ * Handler for the "keydown" event.
  */
 Drupal.jsAC.prototype.onkeydown = function (input, e) {
   if (!e) {
     e = window.event;
   }
   switch (e.keyCode) {
-    case 40: // down arrow
+    case 40: // Down arrow.
       this.selectDown();
       return false;
-    case 38: // up arrow
+    case 38: // Up arrow.
       this.selectUp();
       return false;
-    default: // all other keys
+    default: // All other keys.
       return true;
   }
 };
 
 /**
- * Handler for the "keyup" event
+ * Handler for the "keyup" event.
  */
 Drupal.jsAC.prototype.onkeyup = function (input, e) {
   if (!e) {
     e = window.event;
   }
   switch (e.keyCode) {
-    case 16: // shift
-    case 17: // ctrl
-    case 18: // alt
-    case 20: // caps lock
-    case 33: // page up
-    case 34: // page down
-    case 35: // end
-    case 36: // home
-    case 37: // left arrow
-    case 38: // up arrow
-    case 39: // right arrow
-    case 40: // down arrow
+    case 16: // shift.
+    case 17: // ctrl.
+    case 18: // alt.
+    case 20: // caps lock.
+    case 33: // page up.
+    case 34: // page down.
+    case 35: // end.
+    case 36: // home.
+    case 37: // left arrow.
+    case 38: // up arrow.
+    case 39: // right arrow.
+    case 40: // down arrow.
       return true;
 
-    case 9:  // tab
-    case 13: // enter
-    case 27: // esc
+    case 9:  // tab.
+    case 13: // enter.
+    case 27: // esc.
       this.hidePopup(e.keyCode);
       return true;
 
-    default: // all other keys
+    default: // all other keys.
       if (input.value.length > 0)
         this.populatePopup();
       else
@@ -100,14 +100,14 @@
 };
 
 /**
- * Puts the currently highlighted suggestion into the autocomplete field
+ * Puts the currently highlighted suggestion into the autocomplete field.
  */
 Drupal.jsAC.prototype.select = function (node) {
   this.input.value = node.autocompleteValue;
 };
 
 /**
- * Highlights the next suggestion
+ * Highlights the next suggestion.
  */
 Drupal.jsAC.prototype.selectDown = function () {
   if (this.selected && this.selected.nextSibling) {
@@ -122,7 +122,7 @@
 };
 
 /**
- * Highlights the previous suggestion
+ * Highlights the previous suggestion.
  */
 Drupal.jsAC.prototype.selectUp = function () {
   if (this.selected && this.selected.previousSibling) {
@@ -131,7 +131,7 @@
 };
 
 /**
- * Highlights a suggestion
+ * Highlights a suggestion.
  */
 Drupal.jsAC.prototype.highlight = function (node) {
   if (this.selected) {
@@ -142,7 +142,7 @@
 };
 
 /**
- * Unhighlights a suggestion
+ * Unhighlights a suggestion.
  */
 Drupal.jsAC.prototype.unhighlight = function (node) {
   $(node).removeClass('selected');
@@ -150,14 +150,14 @@
 };
 
 /**
- * Hides the autocomplete suggestions
+ * Hides the autocomplete suggestions.
  */
 Drupal.jsAC.prototype.hidePopup = function (keycode) {
-  // Select item if the right key or mousebutton was pressed
+  // Select item if the right key or mousebutton was pressed.
   if (this.selected && ((keycode && keycode != 46 && keycode != 8 && keycode != 27) || !keycode)) {
     this.input.value = this.selected.autocompleteValue;
   }
-  // Hide popup
+  // Hide popup.
   var popup = this.popup;
   if (popup) {
     this.popup = null;
@@ -167,10 +167,10 @@
 };
 
 /**
- * Positions the suggestions popup and starts a search
+ * Positions the suggestions popup and starts a search.
  */
 Drupal.jsAC.prototype.populatePopup = function () {
-  // Show popup
+  // Show popup.
   if (this.popup) {
     $(this.popup).remove();
   }
@@ -185,13 +185,13 @@
   });
   $(this.input).before(this.popup);
 
-  // Do search
+  // Do search.
   this.db.owner = this;
   this.db.search(this.input.value);
 };
 
 /**
- * Fills the suggestion popup with any matches received
+ * Fills the suggestion popup with any matches received.
  */
 Drupal.jsAC.prototype.found = function (matches) {
   // If no value in the textfield, do not show the popup.
@@ -199,7 +199,7 @@
     return false;
   }
 
-  // Prepare matches
+  // Prepare matches.
   var ul = document.createElement('ul');
   var ac = this;
   for (key in matches) {
@@ -213,7 +213,7 @@
     $(ul).append(li);
   }
 
-  // Show popup with matches, if any
+  // Show popup with matches, if any.
   if (this.popup) {
     if (ul.childNodes.length > 0) {
       $(this.popup).empty().append(ul).show();
@@ -239,7 +239,7 @@
 };
 
 /**
- * An AutoComplete DataBase object
+ * An AutoComplete DataBase object.
  */
 Drupal.ACDB = function (uri) {
   this.uri = uri;
@@ -248,25 +248,25 @@
 };
 
 /**
- * Performs a cached and delayed search
+ * Performs a cached and delayed search.
  */
 Drupal.ACDB.prototype.search = function (searchString) {
   var db = this;
   this.searchString = searchString;
 
-  // See if this key has been searched for before
+  // See if this key has been searched for before.
   if (this.cache[searchString]) {
     return this.owner.found(this.cache[searchString]);
   }
 
-  // Initiate delayed search
+  // Initiate delayed search.
   if (this.timer) {
     clearTimeout(this.timer);
   }
   this.timer = setTimeout(function() {
     db.owner.setStatus('begin');
 
-    // Ajax GET request for autocompletion
+    // Ajax GET request for autocompletion.
     $.ajax({
       type: "GET",
       url: db.uri +'/'+ Drupal.encodeURIComponent(searchString),
@@ -274,7 +274,7 @@
       success: function (matches) {
         if (typeof matches['status'] == 'undefined' || matches['status'] != 0) {
           db.cache[searchString] = matches;
-          // Verify if these are still the matches the user wants to see
+          // Verify if these are still the matches the user wants to see.
           if (db.searchString == searchString) {
             db.owner.found(matches);
           }
@@ -289,7 +289,7 @@
 };
 
 /**
- * Cancels the current autocomplete request
+ * Cancels the current autocomplete request.
  */
 Drupal.ACDB.prototype.cancel = function() {
   if (this.owner) this.owner.setStatus('cancel');
Index: misc/teaser.js
===================================================================
RCS file: /cvs/drupal/drupal/misc/teaser.js,v
retrieving revision 1.12
diff -u -r1.12 teaser.js
--- misc/teaser.js	9 Jan 2008 12:10:04 -0000	1.12
+++ misc/teaser.js	8 Mar 2008 00:42:54 -0000
@@ -56,10 +56,10 @@
       // Note: using val() fails sometimes. jQuery bug?
       teaser[0].value = trim(text.slice(0, split));
       body[0].value = trim(text.slice(split));
-      // Reveal and enable teaser
+      // Reveal and enable teaser.
       $(teaser).attr('disabled', '');
       $(teaser).parent().slideDown('fast');
-      // Change label
+      // Change label.
       $(this).val(Drupal.t('Join summary'));
       // Show separate teaser checkbox, restore checked value.
       $(checkbox).show().children('input').attr('checked', checked);
@@ -87,7 +87,7 @@
     if (Drupal.behaviors.textarea && teaser.is(('.form-textarea:not(.textarea-processed)'))) {
       Drupal.behaviors.textarea(teaser.parentNode);
     }
-    // Set initial visibility
+    // Set initial visibility.
     if ($(teaser).is('[@disabled]')) {
       $(teaser).parent().hide();
     }
Index: misc/tabledrag.js
===================================================================
RCS file: /cvs/drupal/drupal/misc/tabledrag.js,v
retrieving revision 1.14
diff -u -r1.14 tabledrag.js
--- misc/tabledrag.js	10 Feb 2008 19:14:08 -0000	1.14
+++ misc/tabledrag.js	8 Mar 2008 00:42:54 -0000
@@ -269,7 +269,7 @@
           keyChange = true;
 
           if ($(item).is('.tabledrag-root')) {
-            // Swap with the previous top-level row..
+            // Swap with the previous top-level row.
             var groupHeight = 0;
             while (previousRow && $('.indentation', previousRow).size()) {
               previousRow = $(previousRow).prev('tr').get(0);
