Access pages with stored order per default (#1987)

Fix for toggle-text of enable-sort button on shelf page
This commit is contained in:
Ozzie Isaacs
2021-05-13 09:41:27 +02:00
parent c6dadbe75e
commit 9ef705650b
4 changed files with 8 additions and 8 deletions

View File

@ -533,7 +533,7 @@ $(function() {
$("#pub_new").toggleClass("disabled");
$("#pub_old").toggleClass("disabled");
var alternative_text = $("#toggle_order_shelf").data('alt-text');
$("#toggle_order_shelf")[0].attributes['data-alt-text'].value = $("#toggle_order_shelf").html();
$("#toggle_order_shelf").data('alt-text', $("#toggle_order_shelf").html());
$("#toggle_order_shelf").html(alternative_text);
});