Skip to content

Commit ae558a6

Browse files
committed
[dev] cleaning
1 parent d47a229 commit ae558a6

7 files changed

+10
-10
lines changed

controllers/grid-dynamic.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ module.exports = {
55
var limit = (req.query.count || 20)*1;
66
var offset = (req.query.start || 0)*1;
77

8-
console.log(req.query)
98
var where = req.query.filter ? { name:{ $like:"%"+req.query.filter.name+"%" }}: {};
109
var order = req.query.sort ? [["name", req.query.sort.name ]] : [];
1110

views/form-uploading.handlebars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<p>File uploading goes in two steps. First file is uploaded to server side and server sider returns a json object with file ID ( it can be file url if you wish ). After that form can be saved. Uploader field will provide the ID returned on the previous step, not the file itself. </p>
1+
<p>File upload goes in two steps. First a file is uploaded to the server side and the server side returns a json object with the file ID ( it can be the file url if you wish ). After that the form can be saved. The uploader field will provide the ID returned on the previous step, not the file itself.</p>
22
<div id='form-container'></div>
33
<script>
44
var form = webix.ui({

views/form.handlebars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<p>For data loading request, server side returns a json object which will be mapped to inputs based on the "name" property of each input.</p>
1+
<p>For a data loading request, the server side returns a json object which will be mapped to inputs based on the "name" property of each input.</p>
22
<p>To save data, just use webix.ajax and form.getValues</p>
33
<div id='form-container'></div>
44
<script>

views/grid-dynamic.handlebars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<p>For big dataset, dynamic data loading can be used. In this mode datatable will load only part of data initially and will send extra requests during data scrolling</p>
1+
<p>For a big dataset, dynamic data loading can be used. In this mode datatable will load only a part of the data initially and will send extra requests during data scrolling</p>
22
<p>Server side sorting and filtering are essential for dynamic data loading ( can be used in case of normal data loading as well ) </p>
33
<div id='grid-container'></div>
44
<script>

views/grid-paging.handlebars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<p>There are no any tricks in paging mode. Paging can be used with dynamic or normal data loading. </p>
1+
<p>There are no tricks in the paging mode. Paging can be used with dynamic or normal data loading. </p>
22
<div id='grid-container'></div>
33
<script>
44

views/grid.handlebars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<p>Grid and other components can load and save data through common REST protocol </p>
1+
<p>Grid and other components can load and save data through a common REST protocol</p>
22
<div id='grid-container'></div>
33
<script>
44

views/home.handlebars

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
<h3>Hi!</h3>
22

3-
<p>This packages shows how Webix can be used with NodeJS backend.</p>
3+
<p>This package shows how Webix can be used with NodeJS backend.</p>
44
<p>There are 3 major cases:
55

66
<ul>
77
<li>Loading data into data components (list, datatable, chart, etc. )</li>
88
<li>Loading data in hierarchical components (tree, treetable, etc.)</li>
9-
<li>Working with form</li>
9+
<li>Working with forms</li>
1010
</ul>
1111

12-
<p>For data loading server must provide a GET handler which returns a collection of JSON objects (a single JSON object in case of the form )</p>
13-
<p>For data saving, common REST pattern is used. Rest handlers must return a valid JSON object with optional ID value.</p>
12+
<p>For data loading the server must provide a GET handler which returns a collection of JSON objects (a single JSON object in case of the form )</p>
13+
<p>
14+
For data saving, a common REST pattern is used. Rest handlers must return a valid JSON object with an optional ID value.</p>
1415

1516
<h4>Check also</h4>
1617

0 commit comments

Comments
 (0)