CustomTabularExporterDialog: fix checkbox options being ignored
Any value (even an empty string) of the checked attribute will be threated as checked. Fixed by passing null to jQuerys attr function which removes the attribute.
@@ -255,11 +255,9 @@ CustomTabularExporterDialog.prototype._configureUIFromOptionCode = function(opti
this._elmts.separatorInput[0].value = escapeJavascriptString(options.separator || ',');
this._elmts.lineSeparatorInput[0].value = escapeJavascriptString(options.lineSeparator || '\n');
this._elmts.encodingInput[0].value = options.encoding;
- this._elmts.outputColumnHeadersCheckbox.attr('checked', (options.outputColumnHeaders) ? 'checked' : '');
- this._elmts.outputEmptyRowsCheckbox.attr('checked', (options.outputBlankRows) ? 'checked' : '');
- if (options.quoteAll) {
- this._elmts.quoteAllCheckbox.attr('checked');
- }
+ this._elmts.outputColumnHeadersCheckbox.attr('checked', (options.outputColumnHeaders) ? 'checked' : null);
+ this._elmts.outputEmptyRowsCheckbox.attr('checked', (options.outputBlankRows) ? 'checked' : null);
+ this._elmts.quoteAllCheckbox.attr('checked', (options.quoteAll) ? 'checked' : null);
if (options.columns !== null) {
var self = this;
