X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Fapply%2Fstatic%2Fjs%2Fapply.js;h=b94fcd6eec934d72bddccb56a63c3f9489ad3910;hb=2696c755ef27a62406f190412eb8736393682bac;hp=197302810dc1a0364a73c1cc59d123a8aa1d6136;hpb=7254a83bc514a64c05059067bacfe13efaf6284f;p=unfold.git diff --git a/plugins/apply/static/js/apply.js b/plugins/apply/static/js/apply.js index 19730281..b94fcd6e 100644 --- a/plugins/apply/static/js/apply.js +++ b/plugins/apply/static/js/apply.js @@ -46,10 +46,10 @@ bAutoWidth: true, }); - //this.elmt('update').click(this, this.do_ok); - //this.elmt('refresh').click(this, this.do_cancel); + this.elmt('close').click(this, this.do_close); + //this.elmt('apply_cancel').click(this, this.do_cancel); - this.elmt('apply').on('shown.bs.modal', function() { + this.elmt('apply__window').on('shown.bs.modal', function() { self.do_update(); }) @@ -80,7 +80,6 @@ clear: function() { - }, find_row: function(value) @@ -131,11 +130,13 @@ }, - do_ok: function(e) + do_close: function(e) { - throw 'queryupdater.do_reset Not implemented'; + var self = e.data; + self.table.fnClearTable(); }, + // Not used today do_cancel: function(e) { throw 'queryupdater.do_clear_annotations Not implemented';