Avoid extra reload of infolog, just hide the details

This commit is contained in:
Nathan Gray 2014-09-16 14:30:52 +00:00
parent 60c2566bf9
commit 2cf2c3ec12

View File

@ -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