Commit 96bca83b authored by Dries's avatar Dries

- Patch #1569648 by nod_: use localStorage to store tableDrag.showWeight value.

parent f193db25
......@@ -246,14 +246,6 @@ Drupal.tableDrag.prototype.showColumns = function () {
});
// Change link text.
$('.tabledrag-toggle-weight').text(Drupal.t('Hide row weights'));
// Change cookie.
$.cookie('Drupal.tableDrag.showWeight', 1, {
path: Drupal.settings.basePath,
// 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');
};
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment