Avoid extra reload of infolog, just hide the details

This commit is contained in:
Nathan Gray 2014-09-17 15:07:03 +00:00
parent dc965c15f9
commit f74bd300f4

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