From 4f2f64fcbec2e473453c1f7d2c96c100c5681453 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 23 Apr 2014 20:39:22 +0000 Subject: [PATCH] Automatically disable custom field column if there are no custom fields --- etemplate/js/et2_extension_nextmatch.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/etemplate/js/et2_extension_nextmatch.js b/etemplate/js/et2_extension_nextmatch.js index ebae757845..21b498ad8e 100644 --- a/etemplate/js/et2_extension_nextmatch.js +++ b/etemplate/js/et2_extension_nextmatch.js @@ -760,6 +760,12 @@ var et2_nextmatch = et2_DOMWidget.extend([et2_IResizeable, et2_IInput], continue RowLoop; } } + // Disable if there are no custom fields + if(jQuery.isEmptyObject(_row[i].widget.customfields)) + { + _colData[i].disabled = true; + continue; + } } var colName = this._getColumnName(_row[i].widget);