From 9a0b6a921bde134a12aca39f2c365d938dd150ba Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 1 Sep 2014 19:20:05 +0000 Subject: [PATCH] Show or hide details only for the current nextmatch --- infolog/js/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/infolog/js/app.js b/infolog/js/app.js index df17c2b81e..ce8ead3bee 100644 --- a/infolog/js/app.js +++ b/infolog/js/app.js @@ -161,7 +161,7 @@ app.classes.infolog = AppJS.extend( if (nm && filter2) { // Show / hide descriptions - this.show_details(filter2.value == 'all'); + this.show_details(filter2.value == 'all', nm.getDOMNode(nm)); // Change preference location - widget is nextmatch nm.options.settings.columnselection_pref = nm.options.settings.columnselection_pref.replace('-details','') + (filter2.value == 'all' ? '-details' :''); @@ -188,10 +188,10 @@ app.classes.infolog = AppJS.extend( * * @param show */ - show_details: function(show) + show_details: function(show, dom_node) { // Show / hide descriptions - egw.css(".et2_box.infoDes","display:" + (show ? "block;" : "none;")); + egw.css((dom_node && dom_node.id ? "#"+dom_node.id+' ' : '') + ".et2_box.infoDes","display:" + (show ? "block;" : "none;")); }, confirm_delete_2: function (_action, _senders)