Just to simplify the code.
// 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;
});
}
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;
});
}