Refactor table widget to use prototype inheritance better

This commit is contained in:
Albert Santoni 2015-09-17 14:52:32 -04:00
parent d31e0f950d
commit 0826c64719
3 changed files with 188 additions and 211 deletions

View file

@ -20,7 +20,7 @@ $(document).ready(function() {
//Set up the div with id "example-table" as a datatable.
var table = AIRTIME.widgets.table.init(
var table = new AIRTIME.widgets.table(
$('#example-table'), //DOM node to create the table inside.
true, //Enable item selection
myToolbarButtons, //Toolbar buttons