diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-12-30 16:43:20 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-12-30 16:43:20 +0000 |
commit | 92a8adea653b29a9e6ee7778e8628f57b959ca4f (patch) | |
tree | 0fd5b18555aff73bfe4bc5aa3479db3090ad4cf8 /misc/tabledrag.js | |
parent | cac5dd8a66a07887aca4c4730d56978eaf26c70b (diff) | |
download | brdo-92a8adea653b29a9e6ee7778e8628f57b959ca4f.tar.gz brdo-92a8adea653b29a9e6ee7778e8628f57b959ca4f.tar.bz2 |
- Patch #352470 by scor: fixed typos and grammar in comments.
Diffstat (limited to 'misc/tabledrag.js')
-rw-r--r-- | misc/tabledrag.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/misc/tabledrag.js b/misc/tabledrag.js index 7d11cd39e..3fce73041 100644 --- a/misc/tabledrag.js +++ b/misc/tabledrag.js @@ -357,7 +357,7 @@ Drupal.tableDrag.prototype.makeDraggable = function(item) { }); // Compatibility addition, return false on keypress to prevent unwanted scrolling. - // IE and Safari will supress scrolling on keydown, but all other browsers + // IE and Safari will suppress scrolling on keydown, but all other browsers // need to return false on keypress. http://www.quirksmode.org/js/keys.html handle.keypress(function(event) { switch (event.keyCode) { @@ -592,7 +592,7 @@ Drupal.tableDrag.prototype.findDropTargetRow = function(x, y) { Drupal.tableDrag.prototype.updateFields = function(changedRow) { for (var group in this.tableSettings) { // Each group may have a different setting for relationship, so we find - // the source rows for each seperately. + // the source rows for each separately. this.updateField(changedRow, group); } }; @@ -653,7 +653,7 @@ Drupal.tableDrag.prototype.updateField = function(changedRow, group) { // Otherwise we went all the way to the left of the table without finding // a parent, meaning this item has been placed at the root level. else { - // Use the first row in the table as source, because it's garanteed to + // Use the first row in the table as source, because it's guaranteed to // be at the root level. Find the first item, then compare this row // against it as a sibling. sourceRow = $('tr.draggable:first').get(0); @@ -775,7 +775,7 @@ Drupal.tableDrag.prototype.setScroll = function(scrollAmount) { }; Drupal.tableDrag.prototype.restripeTable = function() { - // :even and :odd are reversed because jquery counts from 0 and + // :even and :odd are reversed because jQuery counts from 0 and // we count from 1, so we're out of sync. $('tr.draggable', this.table) .filter(':odd').filter('.odd') @@ -1019,7 +1019,7 @@ Drupal.tableDrag.prototype.row.prototype.findSiblings = function(rowSettings) { // Check that the sibling contains a similar target field. if ($('.' + rowSettings.target, checkRow)) { // Either add immediately if this is a flat table, or check to ensure - // that this row has the same level of indentaiton. + // that this row has the same level of indentation. if (this.indentEnabled) { var checkRowIndentation = $('.indentation', checkRow).length } |