summaryrefslogtreecommitdiff
path: root/misc/tabledrag.js
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2012-04-28 23:24:12 -0700
committerwebchick <webchick@24967.no-reply.drupal.org>2012-04-28 23:24:12 -0700
commit30ea0c7f46023ec346cefb77216b5d7fad6a3617 (patch)
tree62e67a8f28aebe31fb8c681022d1295733b29b19 /misc/tabledrag.js
parent0d41f5d9deb6a7e4b51f0ed16909955477546302 (diff)
downloadbrdo-30ea0c7f46023ec346cefb77216b5d7fad6a3617.tar.gz
brdo-30ea0c7f46023ec346cefb77216b5d7fad6a3617.tar.bz2
Issue #988930 by davidwhthomas, jyve, tim.plunkett, nod_, effulgentsia, droplet, patrickd: Fixed Sticky table headers need to react properly to 'show/hide weights column' link.
Diffstat (limited to 'misc/tabledrag.js')
-rw-r--r--misc/tabledrag.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/misc/tabledrag.js b/misc/tabledrag.js
index 437b08c0f..fed674ca9 100644
--- a/misc/tabledrag.js
+++ b/misc/tabledrag.js
@@ -201,6 +201,8 @@ Drupal.tableDrag.prototype.hideColumns = function () {
// The cookie expires in one year.
expires: 365
});
+ // Trigger an event to allow other scripts to react to this display change.
+ $('table.tabledrag-processed').trigger('columnschange', 'hide');
};
/**
@@ -224,6 +226,8 @@ Drupal.tableDrag.prototype.showColumns = function () {
// The cookie expires in one year.
expires: 365
});
+ // Trigger an event to allow other scripts to react to this display change.
+ $('table.tabledrag-processed').trigger('columnschange', 'show');
};
/**