X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Fresources_selected%2Fstatic%2Fjs%2Fresources_selected.js;h=0e710a492a2ecabc325e515c6824ae85321cd5f4;hb=c025814eadebf386f556f9af571d3f04e2124a80;hp=d64d7171f35f6f314263f354b817318373384c16;hpb=f31075e41cd2e7b4716bb85857bd919a46770ba0;p=unfold.git diff --git a/plugins/resources_selected/static/js/resources_selected.js b/plugins/resources_selected/static/js/resources_selected.js index d64d7171..0e710a49 100644 --- a/plugins/resources_selected/static/js/resources_selected.js +++ b/plugins/resources_selected/static/js/resources_selected.js @@ -31,7 +31,7 @@ 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>", @@ -178,7 +178,7 @@ 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 { @@ -314,9 +314,11 @@ // - 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