From 7eac513425e5d3f2e573254fee24a5012e717539 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Mon, 30 Sep 2013 14:52:13 +0200 Subject: [PATCH] tweaked resources_selected rendering - removed the +/- column that has no content (might not be right?) --- .../static/js/resources_selected.js | 26 +++++++++++-------- .../templates/resources_selected.html | 4 +-- 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/plugins/resources_selected/static/js/resources_selected.js b/plugins/resources_selected/static/js/resources_selected.js index d8705c45..b70176ec 100644 --- a/plugins/resources_selected/static/js/resources_selected.js +++ b/plugins/resources_selected/static/js/resources_selected.js @@ -31,23 +31,26 @@ var self = this; this.table = this.elmt('table').dataTable({ - //sPaginationType: 'full_numbers', // Use pagination +// sDom: "<'row'<'col-md-5'l><'col-md-1'r><'col-md-6'f>>t<'row'<'col-md-5'i><'col-md-7'p>>", sPaginationType: 'full_numbers', + bAutoWidth: true, //bJQueryUI : true, //bRetrieve : true, - sScrollX : '100%', // Horizontal scrolling - bSortClasses : false, // Disable style for the sorted column - aaSorting : [[ 0, 'asc' ]], // Default sorting on URN - fnDrawCallback: function() { // Reassociate close click every time the table is redrawn - /* Prevent to loop on click while redrawing table */ - $('.ResourceSelectedClose').unbind('click'); - /* Handle clicks on close span */ - /* Reassociate close click every time the table is redrawn */ - $('.ResourceSelectedClose').bind('click', self, self._close_click); - } +// sScrollX : '100%', // Horizontal scrolling +// bSortClasses : false, // Disable style for the sorted column +// aaSorting : [[ 0, 'asc' ]], // Default sorting on URN +// fnDrawCallback: function() { // Reassociate close click every time the table is redrawn +// /* Prevent to loop on click while redrawing table */ +// $('.ResourceSelectedClose').unbind('click'); +// /* Handle clicks on close span */ +// /* Reassociate close click every time the table is redrawn */ +// $('.ResourceSelectedClose').bind('click', self, self._close_click); +// } }); // XXX This should not be done at init... + console.log("elmt(update) is " + this.elmt('update')); + this.elmt('update').click(this, this.do_update); this.elmt('refresh').click(this, this.do_refresh); this.elmt('reset').click(this, this.do_reset); @@ -62,6 +65,7 @@ do_update: function(e) { + console.log ("in do_update"); var self = e.data; // XXX check that the query is not disabled manifold.raise_event(self.options.query_uuid, RUN_UPDATE); diff --git a/plugins/resources_selected/templates/resources_selected.html b/plugins/resources_selected/templates/resources_selected.html index 0d84007f..22115d7a 100644 --- a/plugins/resources_selected/templates/resources_selected.html +++ b/plugins/resources_selected/templates/resources_selected.html @@ -1,11 +1,11 @@
- + - +
action key value status +/-
action key value status
action key value status +/-
action key value status
-- 2.43.0