Skip to content

Commit

Permalink
fixing a few typos, semicolons, etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
aadrian committed Jun 5, 2015
1 parent 8a222de commit be97f68
Show file tree
Hide file tree
Showing 110 changed files with 251 additions and 251 deletions.
6 changes: 3 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,23 +134,23 @@ module.exports = function (grunt) {
banner: w2ui
},
files: {
'dist/w2ui.min.js': 'dist/w2ui.js',
'dist/w2ui.min.js': 'dist/w2ui.js'
}
},
fields: {
options: {
banner: fields
},
files: {
'dist/w2ui-fields.min.js': 'dist/w2ui-fields.js',
'dist/w2ui-fields.min.js': 'dist/w2ui-fields.js'
}
},
ks: {
options: {
banner: ks
},
files: {
'dist/kickstart.min.js': 'dist/kickstart.js',
'dist/kickstart.min.js': 'dist/kickstart.js'
}
}
},
Expand Down
6 changes: 3 additions & 3 deletions demos/examples/combo-1.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ <h1>Sidebar & Grid</h1>
{ field: 'fname', caption: 'First Name', size: '180px' },
{ field: 'lname', caption: 'Last Name', size: '180px' },
{ field: 'email', caption: 'Email', size: '40%' },
{ field: 'sdate', caption: 'Start Date', size: '120px' },
{ field: 'sdate', caption: 'Start Date', size: '120px' }
],
records: [
{ recid: 1, fname: 'John', lname: 'Doe', email: '[email protected]', sdate: '4/3/2012' },
Expand All @@ -81,10 +81,10 @@ <h1>Sidebar & Grid</h1>
records: [
{ recid: 1, state: 'Open', title: 'Short title for the record', priority: 2 },
{ recid: 2, state: 'Open', title: 'Short title for the record', priority: 3 },
{ recid: 3, state: 'Closed', title: 'Short title for the record', priority: 1 },
{ recid: 3, state: 'Closed', title: 'Short title for the record', priority: 1 }
]
}
}
};

$(function () {
// initialization
Expand Down
8 changes: 4 additions & 4 deletions demos/examples/combo-10.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="content">
<div id="example_title">
<h1>Dependent Fields</h1>
The examle below demonstrates how to make dependent fields. Note, that the second field is disabled until you select value in the first
The example below demonstrates how to make dependent fields. Note, that the second field is disabled until you select value in the first
field and if you remove value from the first field, second field becomes disabled again. Also, the remote call in the second field will
include the value of thr first.
</div>
Expand Down Expand Up @@ -37,14 +37,14 @@ <h1>Dependent Fields</h1>
var fld = $field2.data('w2field'); // before 1.4.1 -- var fld = $field.data('w2field');
if (sel && !$.isEmptyObject(sel)) {
$field2
.attr('placeholder', '') // beofre 1.5.0 -- fld.options.placeholder = '';
.attr('placeholder', '') // before 1.5.0 -- fld.options.placeholder = '';
.prop('readonly', false);
} else {
$field2
.attr('placeholder', 'Select employee first')
.prop('readonly', true); // beofre 1.5.0 -- fld.options.placeholder = 'Select employee first';
.prop('readonly', true); // before 1.5.0 -- fld.options.placeholder = 'Select employee first';
}
$field2.data('selected', null)
$field2.data('selected', null);
fld.clearCache();
fld.refresh();
});
Expand Down
8 changes: 4 additions & 4 deletions demos/examples/combo-2.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<div class="content">
<div id="example_title">
<h1>Grid & Edit</h1>
The demo below features a resiabled layout with two panels, a grid and edit that are connected. You can click on the record in the grid
and it will be displaed in the form. If you edit the form and click the Save button it will save records into the grid.
The demo below features a resizable layout with two panels, a grid and edit that are connected. You can click on the record in the grid
and it will be displayed in the form. If you edit the form and click the Save button it will save records into the grid.
</div>
<div id="example_view"></div>
<div id="example_code"></div>
Expand Down Expand Up @@ -33,7 +33,7 @@ <h1>Grid & Edit</h1>
{ field: 'fname', caption: 'First Name', size: '33%', sortable: true, searchable: true },
{ field: 'lname', caption: 'Last Name', size: '33%', sortable: true, searchable: true },
{ field: 'email', caption: 'Email', size: '33%' },
{ field: 'sdate', caption: 'Start Date', size: '120px', render: 'date' },
{ field: 'sdate', caption: 'Start Date', size: '120px', render: 'date' }
],
records: [
{ recid: 1, fname: 'John', lname: 'Doe', email: '[email protected]', sdate: '4/3/2012' },
Expand Down Expand Up @@ -92,7 +92,7 @@ <h1>Grid & Edit</h1>
}
}
}
}
};

$(function () {
// initialization
Expand Down
4 changes: 2 additions & 2 deletions demos/examples/combo-3.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="content">
<div id="example_title">
<h1>Spreadsheet Like JavaScript Grid</h1>
In version 1.3 a new feature was introducted that allows to create spreadsheet like grids. Some functionality comes by default and other
In version 1.3 a new feature was introduced that allows to create spreadsheet like grids. Some functionality comes by default and other
can be extended with events.
<ul>
<li>Editable cells (start typing or click enter)</li>
Expand Down Expand Up @@ -55,7 +55,7 @@ <h1>Spreadsheet Like JavaScript Grid</h1>
event.force = true;
}
}
}
};

$(function () {
// initialization
Expand Down
2 changes: 1 addition & 1 deletion demos/examples/combo-4.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ <h1>Buffered Scroll</h1>
{ field: 'sdate', caption: 'Date', size: '120px', resizable: true, sortable: true, render: 'date' }
]
}
}
};

$(function () {
// initialization
Expand Down
2 changes: 1 addition & 1 deletion demos/examples/combo-6.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h1>Layout &amp; Dynamic Tabs</h1>
}
}
}
}
};

$(function () {
// initialization
Expand Down
6 changes: 3 additions & 3 deletions demos/examples/combo-7.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="content">
<div id="example_title">
<h1>Popup &amp; Grid</h1>
The demo below features a popup with a resiabled layout with two panels. One panel has a grid and the second has a form. The grid
The demo below features a popup with a resizable layout with two panels. One panel has a grid and the second has a form. The grid
and the form are connected to each other.
</div>
<div id="example_view"></div>
Expand Down Expand Up @@ -31,7 +31,7 @@ <h1>Popup &amp; Grid</h1>
{ field: 'fname', caption: 'First Name', size: '33%', sortable: true, searchable: true },
{ field: 'lname', caption: 'Last Name', size: '33%', sortable: true, searchable: true },
{ field: 'email', caption: 'Email', size: '33%' },
{ field: 'sdate', caption: 'Start Date', size: '120px', render: 'date' },
{ field: 'sdate', caption: 'Start Date', size: '120px', render: 'date' }
],
records: [
{ recid: 1, fname: 'John', lname: 'Doe', email: '[email protected]', sdate: '4/3/2012' },
Expand Down Expand Up @@ -88,7 +88,7 @@ <h1>Popup &amp; Grid</h1>
}
}
}
}
};

$(function () {
// initialization in memory
Expand Down
6 changes: 3 additions & 3 deletions demos/examples/combo-8.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="content">
<div id="example_title">
<h1>Popup & Layout</h1>
The demo below features a popup with a resiabled layout with two panels. The panels have sidebar with two elements and two grids.
The demo below features a popup with a resizable layout with two panels. The panels have sidebar with two elements and two grids.
</div>
<div id="example_view"></div>
<div id="example_code"></div>
Expand Down Expand Up @@ -60,10 +60,10 @@ <h1>Popup & Layout</h1>
records: [
{ recid: 1, state: 'Open', title: 'Short title for the record', priority: 2 },
{ recid: 2, state: 'Open', title: 'Short title for the record', priority: 3 },
{ recid: 3, state: 'Closed', title: 'Short title for the record', priority: 1 },
{ recid: 3, state: 'Closed', title: 'Short title for the record', priority: 1 }
]
}
}
};

$(function () {
// initialization in memory
Expand Down
4 changes: 2 additions & 2 deletions demos/examples/combo-9.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ <h1>Infinite Scroll</h1>
{ field: 'fname', caption: 'First Name', size: '140px', sortable: true, searchable: 'text', resizable: true },
{ field: 'lname', caption: 'Last Name', size: '140px', sortable: true, searchable: 'text', resizable: true },
{ field: 'email', caption: 'Email', size: '100%', resizable: true, sortable: true },
{ field: 'manager', caption: 'Manager', size: '200px', resizable: true, sortable: true },
{ field: 'manager', caption: 'Manager', size: '200px', resizable: true, sortable: true }
]
}
}
};

function refreshGrid(auto) {
w2ui.grid.autoLoad = auto;
Expand Down
2 changes: 1 addition & 1 deletion demos/examples/fields-2.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ <h1>Date & Time</h1>
// US Format
$('input[type=us-date]').w2field('date');
$('input[type=us-dateA]').w2field('date', { format: 'm/d/yyyy', start: month + '/5/' + year, end: month + '/25/' + year });
$('input[type=us-dateB]').w2field('date', { format: 'm/d/yyyy', blocked: [ month+'/12/2014',month+'/13/2014',month+'/14/' + year,]});
$('input[type=us-dateB]').w2field('date', { format: 'm/d/yyyy', blocked: [ month+'/12/2014',month+'/13/2014',month+'/14/' + year]});
$('input[type=us-date1]').w2field('date', { format: 'm/d/yyyy', end: $('input[type=us-date2]') });
$('input[type=us-date2]').w2field('date', { format: 'm/d/yyyy', start: $('input[type=us-date1]') });
$('input[type=us-time]').w2field('time', { format: 'h12' });
Expand Down
4 changes: 2 additions & 2 deletions demos/examples/forms-10.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div id="example_title">
<h1>Auto-Generated Templates</h1>
Though, you can provide your own form template, which makes it flexible, you can also auto-generate template for the form. It is
quite useful when the form is simple. So, if you do not profide formHTML, formURL and there is no HTML inside containter, the
quite useful when the form is simple. So, if you do not provide formHTML, formURL and there is no HTML inside container, the
form will generate template.
</div>
<div id="example_view">
Expand Down Expand Up @@ -34,7 +34,7 @@ <h1>Auto-Generated Templates</h1>
'Clear': function (event) {
console.log('clear', event);
this.clear();
},
}
}
});
});
Expand Down
4 changes: 2 additions & 2 deletions demos/examples/forms-8.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ <h1>Form in a Popup</h1>
fields: [
{ field: 'first_name', type: 'text', required: true },
{ field: 'last_name', type: 'text', required: true },
{ field: 'email', type: 'email' },
{ field: 'email', type: 'email' }
],
record: {
first_name : 'John',
Expand All @@ -57,7 +57,7 @@ <h1>Form in a Popup</h1>
},
actions: {
"save": function () { this.validate(); },
"reset": function () { this.clear(); },
"reset": function () { this.clear(); }
}
});
}
Expand Down
2 changes: 1 addition & 1 deletion demos/examples/grid-10.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ <h1>Select/Unselect Records</h1>
{ field: 'lname', caption: 'Last Name', size: '30%', sortable: true },
{ field: 'fname', caption: 'First Name', size: '30%', sortable: true },
{ field: 'email', caption: 'Email', size: '40%', sortable: true },
{ field: 'sdate', caption: 'Start Date', size: '90px', sortable: true },
{ field: 'sdate', caption: 'Start Date', size: '90px', sortable: true }
],
records: [
{ recid: 1, fname: 'John', lname: 'doe', email: '[email protected]', sdate: '4/3/2012' },
Expand Down
2 changes: 1 addition & 1 deletion demos/examples/grid-12.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ <h1>Column Sort</h1>
{ field: 'lname', caption: 'Last Name', size: '30%', sortable: true },
{ field: 'fname', caption: 'First Name', size: '30%', sortable: true },
{ field: 'email', caption: 'Email', size: '40%', sortable: true },
{ field: 'sdate', caption: 'Start Date', size: '90px', sortable: true },
{ field: 'sdate', caption: 'Start Date', size: '90px', sortable: true }
],
records: [
{ recid: 1, fname: 'John', lname: 'Doe', email: '[email protected]', sdate: '1/3/2012' },
Expand Down
4 changes: 2 additions & 2 deletions demos/examples/grid-13.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div id="example_title">
<h1>Column Groups</h1>
The column headers of the grid can be displayed in a single line or they can be grouped. The example below demonstrates how to
define column header groups so that several columns appear groupped.
define column header groups so that several columns appear grouped.
</div>
<div id="example_view"></div>
<div id="example_code"></div>
Expand Down Expand Up @@ -36,7 +36,7 @@ <h1>Column Groups</h1>
{ field: 'email', caption: 'Email', size: '40%', sortable: true, resizable: true },
{ field: 'sdate', caption: 'Start', size: '90px', sortable: true, resizable: true },
{ field: 'edate', caption: 'End', size: '90px', sortable: true, resizable: true },
{ field: 'udate', caption: 'Update', size: '90px', sortable: true, resizable: true },
{ field: 'udate', caption: 'Update', size: '90px', sortable: true, resizable: true }
],
records: [
{ recid: 1, fname: 'Jane', lname: 'Doe', email: '[email protected]', sdate: '4/3/2012', edate: '12/3/2012' },
Expand Down
4 changes: 2 additions & 2 deletions demos/examples/grid-14.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="content">
<div id="example_title">
<h1>Summary Records</h1>
The summary is displayed at the bottom of the grid in unscrollable sections. If a regular record has summary property set to true, it will
The summary is displayed at the bottom of the grid in un-scrollable sections. If a regular record has summary property set to true, it will
be automatically moved to the summary section.
</div>
<div id="example_view"></div>
Expand All @@ -19,7 +19,7 @@ <h1>Summary Records</h1>
searches: [
{ field: 'lname', caption: 'Last Name', type: 'text' },
{ field: 'fname', caption: 'First Name', type: 'text' },
{ field: 'email', caption: 'Email', type: 'text' },
{ field: 'email', caption: 'Email', type: 'text' }
],
sortData: [ { field: 'recid', direction: 'asc' } ],
columns: [
Expand Down
2 changes: 1 addition & 1 deletion demos/examples/grid-15.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h1>Simple Search</h1>
{ field: 'lname', caption: 'Last Name', size: '30%', sortable: true },
{ field: 'fname', caption: 'First Name', size: '30%', sortable: true },
{ field: 'email', caption: 'Email', size: '40%' },
{ field: 'sdate', caption: 'Start Date', size: '120px' },
{ field: 'sdate', caption: 'Start Date', size: '120px' }
],
records: [
{ recid: 1, fname: 'Jane', lname: 'Doe', email: '[email protected]', sdate: '4/3/2012' },
Expand Down
2 changes: 1 addition & 1 deletion demos/examples/grid-16.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h1>Advanced Search</h1>
{ field: 'lname', caption: 'Last Name', size: '30%', sortable: true },
{ field: 'fname', caption: 'First Name', size: '30%', sortable: true },
{ field: 'email', caption: 'Email', size: '40%' },
{ field: 'sdate', caption: 'Start Date', render: 'date:mm/dd/yyyy', size: '120px' },
{ field: 'sdate', caption: 'Start Date', render: 'date:mm/dd/yyyy', size: '120px' }
],
records: [
{ recid: 1, fname: 'Jane', lname: 'Doe', email: '[email protected]', sdate: 384052483664 },
Expand Down
4 changes: 2 additions & 2 deletions demos/examples/grid-17.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ <h1>Grid Toolbar</h1>
searches: [
{ field: 'lname', caption: 'Last Name', type: 'text' },
{ field: 'fname', caption: 'First Name', type: 'text' },
{ field: 'email', caption: 'Email', type: 'text' },
{ field: 'email', caption: 'Email', type: 'text' }
],
columns: [
{ field: 'recid', caption: 'ID', size: '50px', sortable: true, attr: 'align=center' },
{ field: 'lname', caption: 'Last Name', size: '30%', sortable: true },
{ field: 'fname', caption: 'First Name', size: '30%', sortable: true },
{ field: 'email', caption: 'Email', size: '40%' },
{ field: 'sdate', caption: 'Start Date', size: '120px' },
{ field: 'sdate', caption: 'Start Date', size: '120px' }
],
onAdd: function (event) {
w2alert('add');
Expand Down
2 changes: 1 addition & 1 deletion demos/examples/grid-18.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h1>Master -> Details</h1>
{ field: 'lname', caption: 'Last Name', size: '30%', sortable: true },
{ field: 'fname', caption: 'First Name', size: '30%', sortable: true },
{ field: 'email', caption: 'Email', size: '40%' },
{ field: 'sdate', caption: 'Start Date', size: '120px' },
{ field: 'sdate', caption: 'Start Date', size: '120px' }
],
records: [
{ recid: 1, fname: 'John', lname: 'doe', email: '[email protected]', sdate: '4/3/2012' },
Expand Down
4 changes: 2 additions & 2 deletions demos/examples/grid-2.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="content">
<div id="example_title">
<h1>Row Formating</h1>
<h1>Row Formatting</h1>
You can pass background and text color for the row in the JSON file. You can also pass any other Grid properties
in the JSON file.
</div>
Expand All @@ -21,7 +21,7 @@ <h1>Row Formating</h1>
columns: [
{ field: 'fname', caption: 'First Name', size: '30%' },
{ field: 'lname', caption: 'Last Name', size: '70%' },
{ field: 'sdate', caption: 'Dates', size: '120px', attr: "align=center" },
{ field: 'sdate', caption: 'Dates', size: '120px', attr: "align=center" }
]
});
});
Expand Down
2 changes: 1 addition & 1 deletion demos/examples/grid-20.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ <h1>Render to a New Box</h1>
{ field: 'lname', caption: 'Last Name', size: '30%', sortable: true },
{ field: 'fname', caption: 'First Name', size: '30%', sortable: true },
{ field: 'email', caption: 'Email', size: '40%' },
{ field: 'sdate', caption: 'Start Date', size: '120px' },
{ field: 'sdate', caption: 'Start Date', size: '120px' }
],
records: [
{ recid: 1, fname: 'Jane', lname: 'Doe', email: '[email protected]', sdate: '4/3/2012' },
Expand Down
4 changes: 2 additions & 2 deletions demos/examples/grid-21.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ <h1>Inline Editing</h1>
{ id: 5, text: 'Addy Osmani' },
{ id: 6, text: 'Paul Irish' },
{ id: 7, text: 'Doug Crocford' },
{ id: 8, text: 'Nicolas Cage' },
{ id: 8, text: 'Nicolas Cage' }
];

$(function () {
Expand Down Expand Up @@ -80,7 +80,7 @@ <h1>Inline Editing</h1>
},
{ field: 'check', caption: 'check', size: '60px', sortable: true, resizable: true, style: 'text-align: center',
editable: { type: 'checkbox', style: 'text-align: center' }
},
}
],
toolbar: {
items: [
Expand Down
2 changes: 1 addition & 1 deletion demos/examples/grid-26.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ <h1>Reorder Grid Rows</h1>
name: 'grid',
show: {
footer: true,
lineNumbers : true,
lineNumbers : true
},
reorderRows: true,
columns: [
Expand Down
Loading

0 comments on commit be97f68

Please sign in to comment.