X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=plugins%2Fresources_selected%2Fstatic%2Fjs%2Fresources_selected.js;h=fb498c2d03e0d50971a7e19f2fd225f040e7f141;hb=80f12b8fb93ab7227bffad8c7aa22020fab007e5;hp=56a49af6b349e02902d28f4b2660e3abc6a1a069;hpb=22dba9d34674e0cc1b285e678bbb7bc6482c58ca;p=myslice.git diff --git a/plugins/resources_selected/static/js/resources_selected.js b/plugins/resources_selected/static/js/resources_selected.js index 56a49af6..fb498c2d 100644 --- a/plugins/resources_selected/static/js/resources_selected.js +++ b/plugins/resources_selected/static/js/resources_selected.js @@ -30,7 +30,7 @@ this._super(options, element); var self = this; - this.table = this.el('table').dataTable({ + this.table = this.elmt('table').dataTable({ //sPaginationType: 'full_numbers', // Use pagination sPaginationType: 'bootstrap', //bJQueryUI : true, @@ -48,10 +48,10 @@ }); // XXX This should not be done at init... - this.el('update').click(this, this.do_update); - this.el('refresh').click(this, this.do_refresh); - this.el('reset').click(this, this.do_reset); - this.el('clear_annotations').click(this, this.do_clear_annotations); + this.elmt('update').click(this, this.do_update); + this.elmt('refresh').click(this, this.do_refresh); + this.elmt('reset').click(this, this.do_reset); + this.elmt('clear_annotations').click(this, this.do_clear_annotations); this.listen_query(options.query_uuid); }, @@ -87,7 +87,7 @@ set_button_state: function(name, state) { - this.el(name).attr('disabled', state ? false : 'disabled'); + this.elmt(name).attr('disabled', state ? false : 'disabled'); }, clear: function()