var self = this;
this.table = this.elmt('table').dataTable({
-// the original hazelnut layout was
+// the original querytable layout was
// sDom: "<'row'<'col-xs-5'l><'col-xs-1'r><'col-xs-6'f>>t<'row'<'col-xs-5'i><'col-xs-7'p>>",
// however the bottom line with 'showing blabla...' and the navigation widget are not really helpful
sDom: "<'row'<'col-xs-5'l><'col-xs-1'r><'col-xs-6'f>>t>",
button
];
if (!row) {
- // XXX second parameter refresh = false can improve performance. todo in hazelnut also
+ // XXX second parameter refresh = false can improve performance. todo in querytable also
this.table.fnAddData(newline);
row = this.find_row(data.value);
} else {
// - Key and confirmation could be sufficient, or key and record state
// XXX move record state to the manifold plugin API
- on_field_state_changed: function(request, key, value, status)
+ on_field_state_changed: function(result)
{
- this.set_state(request, key, value, status);
+ console.log(result)
+ /* this.set_state(result.request, result.key, result.value, result.status); */
+ this.set_state(result);
},
// XXX we will have the requests for change