@@ -151,7 +151,7 @@ function parseData2(data) {
151151 userDataTable . rows ( { selected : true } ) . nodes ( ) . to$ ( ) . each ( function ( index , element ) { selectedGUIDs . push ( element . dataset . guid ) } ) ;
152152 selectedGUIDs . forEach ( guid => { console . log ( 'Added ' + guid ) ; } ) ;
153153 // do something with the ID of the selected items
154- tables . filter ( function ( curTable ) { return curTable !== userDataTable } ) . forEach ( table => { table . draw ( ) } ) ;
154+ tables . filter ( function ( curTable ) { return curTable !== userDataTable } ) . forEach ( table => { table . draw ( 'full-hold' ) } ) ;
155155 }
156156 } ) ;
157157
@@ -265,7 +265,7 @@ function parseData2(data) {
265265 codeDataTable . rows ( { selected : true } ) . nodes ( ) . to$ ( ) . each ( function ( index , element ) { selectedGUIDs . push ( element . dataset . guid ) } ) ;
266266 selectedGUIDs . forEach ( guid => { console . log ( 'Added ' + guid ) ; } ) ;
267267 // do something with the ID of the selected items
268- tables . filter ( function ( curTable ) { return curTable !== codeDataTable } ) . forEach ( table => { table . draw ( ) } ) ;
268+ tables . filter ( function ( curTable ) { return curTable !== codeDataTable } ) . forEach ( table => { table . draw ( 'full-hold' ) } ) ;
269269 }
270270 } ) ;
271271
@@ -361,7 +361,7 @@ if (xmlDoc.getElementsByTagName("Sources")[0]) {
361361 selectedGUIDs = new Array ( ) ;
362362 sourceDataTable . rows ( { selected : true } ) . nodes ( ) . to$ ( ) . each ( function ( index , element ) { selectedGUIDs . push ( element . dataset . guid ) } ) ;
363363 selectedGUIDs . forEach ( guid => { console . log ( 'Added ' + guid ) ; } ) ;
364- tables . filter ( function ( curTable ) { return curTable !== sourceDataTable } ) . forEach ( table => { table . draw ( ) } ) ;
364+ tables . filter ( function ( curTable ) { return curTable !== sourceDataTable } ) . forEach ( table => { table . draw ( 'full-hold' ) } ) ;
365365 }
366366 } ) ;
367367 }
@@ -406,7 +406,7 @@ if (xmlDoc.getElementsByTagName("Sources")[0]) {
406406 selectedGUIDs = new Array ( ) ;
407407 annotationDataTable . rows ( { selected : true } ) . nodes ( ) . to$ ( ) . each ( function ( index , element ) { selectedGUIDs . push ( element . dataset . guid ) } ) ;
408408 selectedGUIDs . forEach ( guid => { console . log ( 'Added ' + guid ) ; } ) ;
409- tables . filter ( function ( curTable ) { return curTable !== annotationDataTable } ) . forEach ( table => { table . draw ( ) } ) ;
409+ tables . filter ( function ( curTable ) { return curTable !== annotationDataTable } ) . forEach ( table => { table . draw ( 'full-hold' ) } ) ;
410410 }
411411 } ) ;
412412 }
@@ -464,7 +464,7 @@ if (xmlDoc.getElementsByTagName("Sources")[0]) {
464464 noteDataTable . rows ( { selected : true } ) . nodes ( ) . to$ ( ) . each ( function ( index , element ) { selectedGUIDs . push ( element . dataset . guid ) } ) ;
465465 selectedGUIDs . forEach ( guid => { console . log ( 'Added ' + guid ) ; } ) ;
466466 // do something with the ID of the selected items
467- tables . filter ( function ( curTable ) { return curTable !== noteDataTable } ) . forEach ( table => { table . draw ( ) } ) ;
467+ tables . filter ( function ( curTable ) { return curTable !== noteDataTable } ) . forEach ( table => { table . draw ( 'full-hold' ) } ) ;
468468 }
469469 } ) ;
470470 }
@@ -524,7 +524,7 @@ if (xmlDoc.getElementsByTagName("Sources")[0]) {
524524 setDataTable . rows ( { selected : true } ) . nodes ( ) . to$ ( ) . each ( function ( index , element ) { selectedGUIDs . push ( element . dataset . guid ) } ) ;
525525 selectedGUIDs . forEach ( guid => { console . log ( 'Added ' + guid ) ; } ) ;
526526 // do something with the ID of the selected items
527- tables . filter ( function ( curTable ) { return curTable !== setDataTable } ) . forEach ( table => { table . draw ( ) } ) ;
527+ tables . filter ( function ( curTable ) { return curTable !== setDataTable } ) . forEach ( table => { table . draw ( 'full-hold' ) } ) ;
528528 }
529529 } ) ;
530530 }
@@ -619,7 +619,7 @@ $("#filterby")
619619 select : $ ( '#filterby' ) . val ( ) == 'Users' ,
620620 stateSave : false
621621 } ) ;
622- userDataTable . draw ( 'page ' ) ;
622+ userDataTable . draw ( 'full-reset ' ) ;
623623 }
624624
625625
@@ -673,7 +673,7 @@ $("#filterby")
673673 ] ;
674674 }
675675 codeDataTable = $ ( ".codetable" ) . DataTable ( codeConfig ) ;
676- codeDataTable . draw ( 'page ' ) ;
676+ codeDataTable . draw ( 'full-reset ' ) ;
677677 }
678678
679679 // Destroy and recreate sourceDataTable
@@ -685,7 +685,7 @@ $("#filterby")
685685 select : $ ( '#filterby' ) . val ( ) == 'Sources' ,
686686 stateSave : false
687687 } ) ;
688- sourceDataTable . draw ( 'page ' ) ;
688+ sourceDataTable . draw ( 'full-reset ' ) ;
689689 }
690690
691691 // Destroy and recreate annotationDataTable
@@ -697,7 +697,7 @@ $("#filterby")
697697 select : $ ( '#filterby' ) . val ( ) == 'Annotations' ,
698698 stateSave : false
699699 } ) ;
700- annotationDataTable . draw ( 'page ' ) ;
700+ annotationDataTable . draw ( 'full-reset ' ) ;
701701 }
702702
703703 // Destroy and recreate noteDataTable
@@ -709,7 +709,7 @@ $("#filterby")
709709 select : $ ( '#filterby' ) . val ( ) == 'Notes' ,
710710 stateSave : false
711711 } ) ;
712- noteDataTable . draw ( 'page ' ) ;
712+ noteDataTable . draw ( 'full-reset ' ) ;
713713 }
714714
715715 // Destroy and recreate setDataTable
@@ -721,7 +721,7 @@ $("#filterby")
721721 select : $ ( '#filterby' ) . val ( ) == 'Sets' ,
722722 stateSave : false
723723 } ) ;
724- setDataTable . draw ( 'page ' ) ;
724+ setDataTable . draw ( 'full-reset ' ) ;
725725 }
726726 } ) ;
727727 } ) ;
0 commit comments