- Patch #1569648 by nod_: use localStorage to store tableDrag.showWeight value.
parent
f193db251f
commit
96bca83bcc
|
@ -246,14 +246,6 @@ Drupal.tableDrag.prototype.showColumns = function () {
|
||||||
});
|
});
|
||||||
// Change link text.
|
// Change link text.
|
||||||
$('.tabledrag-toggle-weight').text(Drupal.t('Hide row weights'));
|
$('.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');
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue