Fix bug where additional infolog columns get shown after changing selected columns

This commit is contained in:
Nathan Gray 2015-12-02 21:03:45 +00:00
parent e56ff68a61
commit 12962b77b4
2 changed files with 3 additions and 1 deletions

View File

@ -994,7 +994,7 @@ var et2_nextmatch = et2_DOMWidget.extend([et2_IResizeable, et2_IInput, et2_IPrin
this.egw().set_preference(app, pref, colDisplay.join(","),
// Use callback after the preference gets set to trigger refresh, in case app
// isn't looking at selectcols and just uses preference
cf_added ? jQuery.proxy(function() {this.controller.update(true);}, this):null
cf_added ? jQuery.proxy(function() {if(this.controller) this.controller.update(true);}, this):null
);
// Save adjusted column sizes

View File

@ -59,6 +59,8 @@ app.classes.infolog = AppJS.extend(
var nm = this.et2.getWidgetById('nm');
var filter2 = nm.getWidgetById('filter2');
this.show_details(filter2.value == 'all',nm.getDOMNode(nm));
// Remove the rule added by show_details() if the template is removed
$j(_et2.DOMContainer).on('clear', function() {egw.css('#infolog-index_nm .et2_box.infoDes');});
// Enable decrypt on hover
if(this.egw.user('apps').stylite)