Skip to content

Commit 22ced06

Browse files
committed
Fix typo
1 parent 17b5727 commit 22ced06

File tree

5 files changed

+11
-14
lines changed

5 files changed

+11
-14
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ Router::post('foo/bar', function(){
99
});
1010
```
1111
Why not try this without any Router::xxx like code, just write your code in separated files:
12-
* http://localhost/
12+
* http://localhost
1313
![Demo portal](https://github.com/steem/qwp/blob/master/doc/demo_portal.png)
14+
1415
* http://localhost/?m=foo&op=bar
1516
![Demo foo bar](https://github.com/steem/qwp/blob/master/doc/demo_foo_bar.png)
1617

@@ -35,16 +36,15 @@ Thanks to the project owner of bootstrap, jquery, jquery.form, jquery.validator,
3536

3637
## Snapshots
3738
CRUD UI template helps you to create the pages easily.
39+
3840
* Phone
3941
![Phone](https://github.com/steem/qwp/blob/master/doc/crud_phone.jpg)
4042

4143
* PC
4244
![Phone](https://github.com/steem/qwp/blob/master/doc/crud_pc.png)
4345

4446
* Other snapshots:
45-
![Portal](https://github.com/steem/qwp/blob/master/doc/portal.png)
46-
![Login](https://github.com/steem/qwp/blob/master/doc/login.png)
47-
![Form](https://github.com/steem/qwp/blob/master/doc/form.png)
4847
![Form Validation](https://github.com/steem/qwp/blob/master/doc/form_validation.png)
48+
![Form](https://github.com/steem/qwp/blob/master/doc/form.png)
4949
![Table](https://github.com/steem/qwp/blob/master/doc/table_loading.png)
5050
![Table](https://github.com/steem/qwp/blob/master/doc/table_loaded.png)

js/qwp.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,6 @@ $h = {};
9494
if ($.type(vtag) == 'undefined') vtag = '"';
9595
var at = ' ', preSep = '';
9696
for (var k in attrs) {
97-
if (!attrs[k]) {
98-
continue;
99-
}
10097
var v = attrs[k];
10198
if (v === true) {
10299
at += preSep + k;
@@ -133,7 +130,7 @@ $h = {};
133130
d = $h.anon(v) + '()';
134131
}
135132
} else {
136-
d = v.toString();
133+
d = '' + v;
137134
}
138135
}
139136
at += preSep + k + eq + vtag + d + vtag;
@@ -170,7 +167,7 @@ $h = {};
170167
}
171168
}
172169
var tag, htmlElements = ['p', 'h1', 'h2', 'h3', 'ul', 'li', 'b', 'div', 'option', 'select', 'thead',
173-
'label', 'span', 'em', 'table', 'tbody', 'th', 'tr', 'td', 'pre', 'code', 'option', 'i', 'a', 'nav'];
170+
'label', 'span', 'em', 'table', 'tbody', 'th', 'tr', 'td', 'pre', 'code', 'option', 'i', 'a', 'nav', 'textarea'];
174171
for (var i = 0, cnt = htmlElements.length; i < cnt; ++i) {
175172
tag = htmlElements[i];
176173
$h[tag] = fn1(tag)
@@ -191,7 +188,7 @@ $h = {};
191188
$h[tag + 'Start'] = fn4(tag);
192189
$h[tag + 'End'] = '</' + htmlElements[i] + '>';
193190
}
194-
$h.spacer = $h.img({border:0, src:'img/spacer.gif'});
191+
$h.spacer = $h.img({border:'0', src:'img/spacer.gif'});
195192
$.extend(qwp, {
196193
_:'&nbsp',
197194
isString: function(v) {

modules/passport/home.js.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ function loginInvalidHandler(e, v) {
55
qwp.notice($L('Number of invalid items: {0}', v.numberOfInvalids()));
66
}
77
function loginBeforeSubmit(v, f, e) {
8-
8+
$("button[type='submit']").attr('disable', true);
99
}
1010
function loginActionHandler(res, data) {
11-
11+
if (!res.ret) $("button[type='submit']").attr('disable', false);
1212
}
1313
</script>

ui/dialog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ qwp.dialog = {
8484
if (opt.noCancel) {
8585
obj.hide();
8686
} else {
87-
var t = $(id + " [qwp='txt-ok']").text();
87+
var t = $(id + " [qwp='txt-cancel']").text();
8888
if (!t || opt.txtCancel) {
8989
$(id + " [qwp='txt-cancel']").text(opt.txtCancel ? $L(opt.txtCancel) : $L('Cancel'));
9090
}

ui/table.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ qwp.table = {
6767
},
6868
deleteRows: function(tableName, id) {
6969
if (!id) return;
70-
var d = $.isArray(id) ? id : [id], container = qwp.table.container(tableName);;
70+
var d = $.isArray(id) ? id : [id], container = qwp.table.container(tableName);
7171
for (var i = 0, cnt = d.length; i < cnt; ++i) {
7272
$(container + " table[qwp='data-table'] tbody > tr[rid='" + d[i].toString() + "']").remove();
7373
}

0 commit comments

Comments
 (0)