Bug 12989: Fix JS error

inactive and active are not defined anymore. They should be removed. The
filter is done with DataTables.

Signed-off-by: Paola Rossi <paola.rossi@cineca.it>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
Jonathan Druart 2014-10-02 15:52:52 +02:00 committed by Tomas Cohen Arazi
parent 860ec0aec6
commit 8176c2f390

View file

@ -71,14 +71,10 @@ $(document).ready(function() {
$("#hide_inactive").click(function(e){ $("#hide_inactive").click(function(e){
e.preventDefault(); e.preventDefault();
oTable.fnFilter( 1, 0 ); // Show only active=1 oTable.fnFilter( 1, 0 ); // Show only active=1
inactive.hide();
active.show();
}); });
$("#show_inactive").click(function(e){ $("#show_inactive").click(function(e){
e.preventDefault(); e.preventDefault();
oTable.fnFilter( '', 0 ); oTable.fnFilter( '', 0 );
inactive.show();
active.hide();
}); });
$("#hide_inactive").click(); $("#hide_inactive").click();