From e567e6d0bfeeb4c65c18a01fa4f0008bdeba4e75 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 19 Mar 2012 19:57:02 +0000 Subject: [PATCH] Update visible custom fields --- etemplate/js/et2_extension_customfields.js | 4 ++-- etemplate/js/et2_extension_nextmatch.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/etemplate/js/et2_extension_customfields.js b/etemplate/js/et2_extension_customfields.js index 1a15fe33f5..9c649bd527 100644 --- a/etemplate/js/et2_extension_customfields.js +++ b/etemplate/js/et2_extension_customfields.js @@ -256,11 +256,11 @@ var et2_customfields_list = et2_baseWidget.extend([et2_IDetachedDOM], { { if(_fields[name]) { - this.rows.show(); + jQuery(this.rows[this.prefix+name]).show(); } else { - this.rows.hide(); + jQuery(this.rows[this.prefix+name]).hide(); } } this.options.fields[name] = _fields[name]; diff --git a/etemplate/js/et2_extension_nextmatch.js b/etemplate/js/et2_extension_nextmatch.js index 9d4627e123..493f7b9bb1 100644 --- a/etemplate/js/et2_extension_nextmatch.js +++ b/etemplate/js/et2_extension_nextmatch.js @@ -652,6 +652,7 @@ var et2_nextmatch = et2_DOMWidget.extend(et2_IResizeable, { visible[value[j].substring(1)] = true; i++; } + self.columns[column].widget.set_visible(visible); } column++; }