Remove extraneous debugging.
[mkws-moved-to-github.git] / tools / htdocs / mkws.js
index 057b8ff..809fc18 100644 (file)
@@ -224,7 +224,6 @@ function widget($, team, type, node) {
 
     function promoteTermlists() {
        team.queue("termlists").subscribe(function(data) {
-           mkws.debug("in termlist consumer");
            if (!node) {
                alert("termlists event when there are no termlists");
                return;
@@ -404,9 +403,10 @@ function widget($, team, type, node) {
        // 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;
        });
     }
@@ -415,9 +415,10 @@ function widget($, team, type, node) {
     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;
        });
     }