File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -57,11 +57,7 @@ with the following piece of code:
5757
5858 <div class="table-responsive">
5959 <table
60- class="table table-hover table-striped display"
61- id="id"
62- <!-- enable to remember last search text. Per default false -->
63- data-remember-search-text="true"
64- >
60+ class="table table-striped display" id="id">
6561 [...]
6662 </table>
6763 </div>
Original file line number Diff line number Diff line change @@ -145,7 +145,10 @@ jQuery3(document).ready(function () {
145145 } ) ;
146146 }
147147
148- if ( ! table . hasClass ( "custom-persistence-off" ) ) {
148+ // Since Jenkins 2.406 Prototype has been removed from core.
149+ // So we basically do not need to support a custom serialization of the data-tables state
150+ // anymore. We can now use the default auto-save functionality of DataTables.
151+ if ( typeof Prototype === 'object' ) {
149152 // Add event listener that stores the order a user selects
150153 table . on ( 'order.dt' , function ( ) {
151154 const order = table . DataTable ( ) . order ( ) ;
You can’t perform that action at this time.
0 commit comments