Pager: fix pager widget demo destroy method

This commit is contained in:
Rob Garrison 2015-10-26 11:01:33 -05:00
parent 7fa7907953
commit 30a83b01df

View File

@ -178,8 +178,7 @@
var $t = $(this);
if (/Destroy/.test( $t.text() )){
$table[0].config.widgets = ['zebra'];
$table.trigger('refreshWidgets');
//.trigger('destroyPager');
$table.trigger('destroyPager');
$t.text('Restore Pager');
} else {
$table[0].config.widgets = ['zebra', 'pager'];