]> _ Git - fluidbook-html5.git/commitdiff
fix #2099 @0:05
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 14 Jun 2018 09:17:57 +0000 (11:17 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 14 Jun 2018 09:17:57 +0000 (11:17 +0200)
js/libs/fluidbook/forms/fluidbook.form.bourbon.js

index 852d9702afbe083ad3da65e6d14c3a2106f3df3b..997e9b9abcf19e1e5fe073a0eaaf7ef8cb0ac969 100644 (file)
@@ -29,7 +29,7 @@ FluidbookBourbonForm.prototype = {
         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>';
@@ -51,7 +51,7 @@ FluidbookBourbonForm.prototype = {
 
         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) {