Implement csv_fields = false to disable export button

This commit is contained in:
Nathan Gray 2013-05-28 18:16:22 +00:00
parent 9248942e9f
commit d8fcb574a6

View File

@ -1309,7 +1309,7 @@ var et2_nextmatch_header_bar = et2_DOMWidget.extend(et2_INextmatchHeader,
this._setup_favorites(settings['favorites']); this._setup_favorites(settings['favorites']);
// Export // Export
if(!settings.no_csv_export) if(typeof settings.csv_fields == "undefined" || settings.csv_fields != false)
{ {
var definition = settings.csv_fields; var definition = settings.csv_fields;
if(settings.csv_fields === true) if(settings.csv_fields === true)