Skip to content

Commit

Permalink
typos and a few semicolons...
Browse files Browse the repository at this point in the history
  • Loading branch information
GerHobbelt committed Mar 1, 2014
1 parent adb970e commit c4ecc13
Show file tree
Hide file tree
Showing 20 changed files with 37 additions and 36 deletions.
2 changes: 1 addition & 1 deletion demos/examples/combo-6.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="content">
<div id="example_title">
<h1>Layout & Dynamic Tabs</h1>
<h1>Layout &amp; Dynamic Tabs</h1>
Each panel of the layout has built-in support for toolbar and tabs. The example below demonstrates how to use this functionality.
</div>
<div id="example_view"></div>
Expand Down
2 changes: 1 addition & 1 deletion demos/examples/combo-7.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="content">
<div id="example_title">
<h1>Popup & Grid</h1>
<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
and the form are connected to each other.
</div>
Expand Down
2 changes: 1 addition & 1 deletion demos/examples/grid-20.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="content">
<div id="example_title">
<h1>Render to a New Box</h1>
When you create a grid it is not required to provide a containter, thus it creates a grid in memory.
When you create a grid it is not required to provide a container, thus it creates a grid in memory.
The example below illustrates how to create a grid in memory and render it when needed and where needed.
</div>
<div id="example_view"></div>
Expand Down
4 changes: 2 additions & 2 deletions demos/examples/listview-3.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ <h1>Selecting items</h1>
<!--CODE-->
<input type="button" value="Select Item 1" onclick="w2ui.listview.select('item1')">
<input type="button" value="Deselect Item 1" onclick="w2ui.listview.unselect('item1')">
<input type="button" value="Select Item 5 & Item 7" onclick="w2ui.listview.select('item5'); w2ui.listview.select('item7', true);">
<input type="button" value="Deselect Item 5 & Item 7" onclick="w2ui.listview.unselect('item5', 'item7');">
<input type="button" value="Select Item 5 &amp; Item 7" onclick="w2ui.listview.select('item5'); w2ui.listview.select('item7', true);">
<input type="button" value="Deselect Item 5 &amp; Item 7" onclick="w2ui.listview.unselect('item5', 'item7');">
<br><br>
<div id="listview" style="width: 100%;"></div>

Expand Down
2 changes: 1 addition & 1 deletion demos/examples/sidebar-8.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="content">
<div id="example_title">
<h1>Top & Bottom HTML</h1>
<h1>Top &amp; Bottom HTML</h1>
You can add top and/or bottom HTML that will alwayst stay there. You can expand columns and if
</div>
<div id="example_view"></div>
Expand Down
6 changes: 4 additions & 2 deletions demos/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ $(function () {
$.get('examples/'+ cmd +'.html', function (data) {
var tmp = data.split('<!--CODE-->');
if (tmp.length == 1) {
alert('ERORR: cannot parse example.');
console.log('ERORR: cannot parse example.', data);
alert('ERROR: cannot parse example.');
console.log('ERROR: cannot parse example.', data);
return;
}
var html = tmp[1] ? $.trim(tmp[1]) : '';
Expand Down Expand Up @@ -240,6 +240,7 @@ $(function () {
w2ui['demo-sidebar'].expand('combo');
w2ui['demo-sidebar'].click(tmp[1] || 'combo-1');
break;

case '#!layout':
w2ui['demo-sidebar'].expand('layout');
w2ui['demo-sidebar'].click(tmp[1] || 'layout-1');
Expand All @@ -264,6 +265,7 @@ $(function () {
w2ui['demo-sidebar'].expand('listview');
w2ui['demo-sidebar'].click(tmp[1] || 'listview-1');
break;

case '#!tabs':
w2ui['demo-sidebar'].expand('tabs');
w2ui['demo-sidebar'].click(tmp[1] || 'tabs-1');
Expand Down
4 changes: 2 additions & 2 deletions docs/details/w2listview.menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
Array, default = []
</div>

You can use this property if you want to define a context menu for the listview. Internally, context meny is implemented using
$().w2menu plugin that similar to $().w2overlay() and located in w2utils. This array holds objects of the following structure:
You can use this property if you want to define a context menu for the listview. Internally, context menu is implemented using
$().w2menu plugin which is similar to $().w2overlay() and located in w2utils. This array holds objects of the following structure:
<textarea class="html">
item = {
id : 1, // unique id
Expand Down
2 changes: 1 addition & 1 deletion docs/details/w2sidebar.menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Array, default = []
</div>

You can use this property if you want to define a context menu for the sidebar. Internally, context meny is implemented using
You can use this property if you want to define a context menu for the sidebar. Internally, context menu is implemented using
$().w2menu plugin that similar to $().w2overlay() and located in w2utils. This array holds objects of the following structure:
<textarea class="html">
item = {
Expand Down
2 changes: 1 addition & 1 deletion docs/details/w2tabs.tabs.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
This array contains all the tab objects. A tab object has the following structure:
<textarea class="javascript">
tab : {
id : null, // commnad to be sent to all event handlers
id : null, // command to be sent to all event handlers
text : '', // tab caption
hidden : false, // defines if tab is hidden
disabled : false, // defines if tab is disabled
Expand Down
2 changes: 1 addition & 1 deletion docs/overview/utils-plugins.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ <h3>Plugins</h3>

<h4>$().w2render(name)</h4>

jQuery plugin to render previously created element. For example, if you have created a grid and now want to render it to a different containter,
jQuery plugin to render previously created element. For example, if you have created a grid and now want to render it to a different container,
you can do this:

<textarea class="javascript">
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,5 @@ Your contributions are welcome. However, few things you need to know before cont
2. If you are changing JS files - do all changes in /src folder
3. If you are changing CSS files - do all changes in LESS in /src/less/src
4. If you want to help with unit test - do all changes in /test/qunit
5. If you want to change documenation - do all chnages in /docs
5. If you want to change documenation - do all changes in /docs
6. If you want to add demos - do all changes in /demos
4 changes: 2 additions & 2 deletions server/php/w2lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

class w2grid_class {
// constructor/destructor
public function __consturct() {}
public function __descruct() {}
public function __construct() {}
public function __destruct() {}

public function getRecords($sql, $cql, $request) {
global $db, $dbType;
Expand Down
8 changes: 4 additions & 4 deletions server/readme.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
## Server side libraries

The w2ui library does not inherintly depend on any server side language. However, it might be usefull to provide some examples in
The w2ui library does not inherently depend on any server side language. However, it might be useful to provide some examples in
different languages. The goal of these examples is to implement such features as

- search fields parsing
- sort fields parsing
- retrieve/delete records for w2grid
- edit/save record for w2form

### Strucutre
### Structure

There should be only one file users.[java|cs|js|php|rb] that should implement a basic example. The following is an example of a table structure
that should be in **test** db at **localhost** of mysql databser with **root** user and no password:
There should be only one file named `users.[java|cs|js|php|rb]` that should implement a basic example. The following is an example of a table structure
that should be in **test** db at **localhost** of mysql database with **root** user and no password:

```sql
CREATE TABLE users(
Expand Down
8 changes: 4 additions & 4 deletions src/w2form.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@
return this;
} else {
console.log('ERROR: Method ' + method + ' does not exist on jQuery.w2form');
}
}
}
};

// ====================================================
// -- Implementation of core functionality
Expand Down Expand Up @@ -367,7 +367,7 @@
if (typeof responseText == "object") {
data = responseText;
} else {
// $.parseJSON or $.getJSON did not work because it expect perfect JSON data - where everything is in double quotes
// $.parseJSON or $.getJSON did not work because those expect perfect JSON data - where everything is in double quotes
try { eval('data = '+ responseText); } catch (e) { }
}
if (typeof data == 'undefined') {
Expand Down Expand Up @@ -480,7 +480,7 @@
if (typeof responseText == "object") {
data = responseText;
} else {
// $.parseJSON or $.getJSON did not work because it expect perfect JSON data - where everything is in double quotes
// $.parseJSON or $.getJSON did not work because those expect perfect JSON data - where everything is in double quotes
try { eval('data = '+ responseText); } catch (e) { }
}
if (typeof data == 'undefined') {
Expand Down
6 changes: 3 additions & 3 deletions src/w2grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -1556,7 +1556,7 @@
console.log('ERROR: Your parser did not return proper object');
}
} else {
// $.parseJSON or $.getJSON did not work because it expect perfect JSON data - where everything is in double quotes
// $.parseJSON or $.getJSON did not work because those expect perfect JSON data - where everything is in double quotes
try { eval('data = '+ responseText); } catch (e) { }
}
}
Expand All @@ -1571,7 +1571,7 @@
status : 'error',
message : this.msgNotJSON,
responseText : responseText
}
};
}
if (data['status'] == 'error') {
obj.error(data['message']);
Expand Down Expand Up @@ -4538,7 +4538,7 @@
var record = (summary !== true ? this.records[ind] : this.summary[ind]);
var data = this.getCellValue(ind, col_ind, summary);
var edit = col.editable;
// various renderers
// various renderers
if (typeof col.render != 'undefined') {
if (typeof col.render == 'function') {
data = $.trim(col.render.call(this, record, ind, col_ind));
Expand Down
2 changes: 1 addition & 1 deletion src/w2layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
var panels = method.panels;
var object = new w2layout(method);
$.extend(object, { handlers: [], panels: [] });
// add defined panels panels
// add defined panels
for (var p in panels) {
object.panels[p] = $.extend(true, {}, w2layout.prototype.panel, panels[p]);
if ($.isPlainObject(object.panels[p].tabs) || $.isArray(object.panels[p].tabs)) initTabs(object, panels[p].type);
Expand Down
1 change: 0 additions & 1 deletion src/w2listview.js
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,6 @@
appendDiv(itmDiv, 'caption');
obj.captionOnlyTemplate = template;
}

} else if (withDescription && !withExtra) {
if ('captionWithDescription' in obj) {
template = obj.captionWithDescriptionTemplate;
Expand Down
6 changes: 3 additions & 3 deletions src/w2sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
img : null,
icon : null,
nodes : [],
style : '', // additiona style for subitems
style : '', // additional style for subitems
selected : false,
expanded : false,
hidden : false,
Expand Down Expand Up @@ -252,8 +252,8 @@
if (arguments.length == 1) this.refresh(arguments[0]); else this.refresh();
return hidden;
},
show: function () {

show: function () { // multiple arguments
var shown = 0;
for (var a = 0; a < arguments.length; a++) {
var tmp = this.get(arguments[a]);
Expand Down
2 changes: 1 addition & 1 deletion src/w2toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@

w2toolbar.prototype = {
item: {
id : null, // commnad to be sent to all event handlers
id : null, // command to be sent to all event handlers
type : 'button', // button, check, radio, drop, menu, break, html, spacer
text : '',
html : '',
Expand Down
6 changes: 3 additions & 3 deletions src/w2utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,7 @@ var w2utils = (function () {
return false;
}
return true;
};
}

function checkUniqueId (id, items, itemsDecription, objName) { // was w2checkUniqueId
if (!$.isArray(items)) items = [items];
Expand All @@ -849,15 +849,15 @@ var w2utils = (function () {
}
}
return true;
};
}



})();

/***********************************************************
* Generic Event Object
* --- This object is reused across all other
* --- This object is reused across all other
* --- widgets in w2ui.
*
*********************************************************/
Expand Down

0 comments on commit c4ecc13

Please sign in to comment.