From d8fcb574a687d7b48ee355b55d9908f2f1ba7514 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 28 May 2013 18:16:22 +0000 Subject: [PATCH] Implement csv_fields = false to disable export button --- etemplate/js/et2_extension_nextmatch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/js/et2_extension_nextmatch.js b/etemplate/js/et2_extension_nextmatch.js index de3e9fb0b3..590a2bfc72 100644 --- a/etemplate/js/et2_extension_nextmatch.js +++ b/etemplate/js/et2_extension_nextmatch.js @@ -1309,7 +1309,7 @@ var et2_nextmatch_header_bar = et2_DOMWidget.extend(et2_INextmatchHeader, this._setup_favorites(settings['favorites']); // Export - if(!settings.no_csv_export) + if(typeof settings.csv_fields == "undefined" || settings.csv_fields != false) { var definition = settings.csv_fields; if(settings.csv_fields === true)