From 2cf2c3ec1272b446a4b7a9748e502a99a40f9138 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 16 Sep 2014 14:30:52 +0000 Subject: [PATCH] Avoid extra reload of infolog, just hide the details --- infolog/js/app.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/infolog/js/app.js b/infolog/js/app.js index 9fb3db1b99..549819aabc 100644 --- a/infolog/js/app.js +++ b/infolog/js/app.js @@ -55,7 +55,10 @@ app.classes.infolog = AppJS.extend( { case 'infolog.index': this.filter_change(); - this.filter2_change(null, this.et2.getWidgetById('nm')); + // Show / hide descriptions according to details filter + var nm = this.et2.getWidgetById('nm'); + var filter2 = nm.getWidgetById('filter2'); + this.show_details(filter2.value == 'all',nm.getDOMNode(nm)); break; case 'infolog.edit.print': // Trigger print command if the infolog oppend for printing porpuse