view += '<input type="text" id="bourbon-suggestion-page" data-parsley-type="integer" name="page" value="' + this.fluidbook.currentPage + '" min="0" max="' + this.fluidbook.datas.pages + '" tabindex="100" required>';
view += '</label>';
view += '<label>Suggestion type';
- view += '<select id="bourbon-suggestion-type"><option>TYPO / WORDING</option><option>CLARIFICATION REQUEST</option><option>OTHERS (Improvement, etc)</option></select>';
+ view += '<select id="bourbon-suggestion-type"><option>TYPO / WORDING</option><option>CLARIFICATION REQUEST</option><option>IMPROVEMENT SUGGESTION (Gaps, Ideas, etc)</option></select>';
view += '</label>';
view += '<label>Suggestion';
view += '<textarea cols="100" rows="20" tabindex="101" id="bourbon-suggestion-body" name="suggestion" required></textarea>';
var file = 'suggestion.txt';
var filePath = path.join(nw.App.dataPath, file);
- var data = $("#bourbon-suggestion-page").val() + "/|!/" + Date.now() +"/|!/" + $("#bourbon-suggestion-type").val()+ "/|!/" +$("#bourbon-suggestion-body").val();
+ var data = $("#bourbon-suggestion-page").val() + "/|!/" + Date.now() + "/|!/" + $("#bourbon-suggestion-type").val() + "/|!/" + $("#bourbon-suggestion-body").val();
console.log('Data to send: ' + data);
this.fluidbook.displayLoader();
fs.writeFile(filePath, data, function (err) {