projects
/
mkws-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Invert submitted() login in Sort and Perpage widgets.
[mkws-moved-to-github.git]
/
tools
/
htdocs
/
mkws.js
diff --git
a/tools/htdocs/mkws.js
b/tools/htdocs/mkws.js
index
057b8ff
..
e15f9ea
100644
(file)
--- a/
tools/htdocs/mkws.js
+++ b/
tools/htdocs/mkws.js
@@
-404,9
+404,10
@@
function widget($, team, type, node) {
// than consuming them.
$(node).change(function () {
team.set_sortOrder($(node).val());
// than consuming them.
$(node).change(function () {
team.set_sortOrder($(node).val());
- if (!team.submitted()) return false;
- team.resetPage();
- team.reShow();
+ if (team.submitted()) {
+ team.resetPage();
+ team.reShow();
+ }
return false;
});
}
return false;
});
}
@@
-415,9
+416,10
@@
function widget($, team, type, node) {
function promotePerpage() {
$(node).change(function() {
team.set_perpage($(node).val());
function promotePerpage() {
$(node).change(function() {
team.set_perpage($(node).val());
- if (!team.submitted()) return false;
- team.resetPage();
- team.reShow();
+ if (team.submitted()) {
+ team.resetPage();
+ team.reShow();
+ }
return false;
});
}
return false;
});
}