From: Jordan Augé Date: Thu, 24 Jul 2014 15:45:41 +0000 (+0200) Subject: fixed design issues with scheduler2 and apply X-Git-Tag: myslice-1.0~45^2^2~5 X-Git-Url: http://git.onelab.eu/?p=myslice.git;a=commitdiff_plain;h=2696c755ef27a62406f190412eb8736393682bac fixed design issues with scheduler2 and apply --- 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'; diff --git a/plugins/apply/templates/apply.html b/plugins/apply/templates/apply.html index 65070128..31a22eee 100644 --- a/plugins/apply/templates/apply.html +++ b/plugins/apply/templates/apply.html @@ -1,6 +1,6 @@
-