diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2012-02-28 23:22:37 -0800 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2012-02-28 23:22:37 -0800 |
commit | 2a7d3d9b20eb80d011bf45ccc5376e57cdcbab12 (patch) | |
tree | e53f02391b837f064f9036e8aff9253cab2ce9ee | |
parent | f4791b9c416d7f3538f307ac16cc2dfce4f32672 (diff) | |
download | brdo-2a7d3d9b20eb80d011bf45ccc5376e57cdcbab12.tar.gz brdo-2a7d3d9b20eb80d011bf45ccc5376e57cdcbab12.tar.bz2 |
Issue #1420056 by droplet, nod_: Fixed moving shortcut local var.
-rw-r--r-- | modules/shortcut/shortcut.admin.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/shortcut/shortcut.admin.js b/modules/shortcut/shortcut.admin.js index 453a40231..dfb76cb06 100644 --- a/modules/shortcut/shortcut.admin.js +++ b/modules/shortcut/shortcut.admin.js @@ -52,7 +52,7 @@ Drupal.behaviors.shortcutDrag = { // status to be disabled and mark it also as changed. var changedRowObject = new tableDrag.row(changedRow, 'mouse', self.indentEnabled, self.maxDepth, true); changedRowObject.markChanged(); - rowStatusChange(changedRowObject); + tableDrag.rowStatusChange(changedRowObject); } } else if (total != visibleLength) { @@ -71,18 +71,18 @@ Drupal.behaviors.shortcutDrag = { // Add a handler so when a row is dropped, update fields dropped into new regions. tableDrag.onDrop = function () { - rowStatusChange(this.rowObject); + tableDrag.rowStatusChange(this.rowObject); return true; }; - function rowStatusChange(rowObject) { + tableDrag.rowStatusChange = function (rowObject) { // Use "status-message" row instead of "status" row because // "status-{status_name}-message" is less prone to regexp match errors. var statusRow = $(rowObject.element).prevAll('tr.shortcut-status').get(0); var statusName = statusRow.className.replace(/([^ ]+[ ]+)*shortcut-status-([^ ]+)([ ]+[^ ]+)*/, '$2'); var statusField = $('select.shortcut-status-select', rowObject.element); statusField.val(statusName); - } + }; tableDrag.restripeTable = function () { // :even and :odd are reversed because jQuery counts from 0 and |