Subversion Repositories munaweb

Rev

Rev 6 | Rev 10 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6 Rev 7
Line 294... Line 294...
294
                    var $this = $(this);
294
                    var $this = $(this);
295
                    $this.closest('tr').toggleClass(highlightClass, this.checked);
295
                    $this.closest('tr').toggleClass(highlightClass, this.checked);
296
                    $this.trigger('updateCell', [$this.closest('td'), resort]);
296
                    $this.trigger('updateCell', [$this.closest('td'), resort]);
297
 
297
 
298
                    // handle header
298
                    // handle header
299
                    var rowCount = $('#' + tableName + ' tbody tr').length + $('#' + tableName + ' tbody tr:hidden').length;
299
                    var rowCount = $('#' + tableName + ' tbody tr').length;
300
                    var checkedCount = $('#' + tableName + ' tbody .checked').length;
300
                    var checkedCount = $('#' + tableName + ' tbody .checked').length;
301
                    var ua = window.navigator.userAgent;
301
                    var ua = window.navigator.userAgent;
302
                    if (checkedCount === 0) {
302
                    if (checkedCount === 0) {
303
                        $table.add($sticky).find('thead input[type=checkbox]').prop('checked', false);
303
                        $table.add($sticky).find('thead input[type=checkbox]').prop('checked', false);
304
                        $table.add($sticky).find('thead input[type=checkbox]').prop('indeterminate', false);
304
                        $table.add($sticky).find('thead input[type=checkbox]').prop('indeterminate', false);
Line 327... Line 327...
327
                    // update all at once
327
                    // update all at once
328
                    $table[0].ignoreChange = false;
328
                    $table[0].ignoreChange = false;
329
                    $table.trigger('update', [resort]);
329
                    $table.trigger('update', [resort]);
330
 
330
 
331
                    // handle header
331
                    // handle header
332
                    var rowCount = $('#' + tableName + ' tbody tr').length + $('#' + tableName + ' tbody tr:hidden').length;
332
                    var rowCount = $('#' + tableName + ' tbody tr').length;
333
                    var checkedCount = $('#' + tableName + ' tbody .checked').length;
333
                    var checkedCount = $('#' + tableName + ' tbody .checked').length;
334
                    var ua = window.navigator.userAgent;
334
                    var ua = window.navigator.userAgent;
335
                    if (checkedCount === 0) {
335
                    if (checkedCount === 0) {
336
                        $table.add($sticky).find('th[data-column=' + col + '] input[type=checkbox]').prop('checked', false);
336
                        $table.add($sticky).find('th[data-column=' + col + '] input[type=checkbox]').prop('checked', false);
337
                        $table.add($sticky).find('th[data-column=' + col + '] input[type=checkbox]').prop('indeterminate', false);
337
                        $table.add($sticky).find('th[data-column=' + col + '] input[type=checkbox]').prop('indeterminate', false);
Line 741... Line 741...
741
 
741
 
742
    function checkListingsToRelist() {
742
    function checkListingsToRelist() {
743
        if (listingsToRelist > 0) {
743
        if (listingsToRelist > 0) {
744
            window.setTimeout(checkListingsToRelist, 100); // wait 100 milliseconds
744
            window.setTimeout(checkListingsToRelist, 100); // wait 100 milliseconds
745
        } else {
745
        } else {
746
            $("#" + tableSorterName).trigger("update").trigger("appendCache").trigger("applyWidgets");
-
 
747
            $('#selected-rows').html('0');
746
            tableSorterUpdateCounters(tableName);
748
            $("#" + tableName).find('thead input[type=checkbox]').prop('checked', false);
-
 
749
            $("#" + tableName).find('thead input[type=checkbox]').prop('indeterminate', false);
-
 
750
 
-
 
751
            endProgressBar();
747
            endProgressBar();
752
 
748
 
753
            x = document.getElementById("results");
749
            x = document.getElementById("results");
754
            x.innerHTML += '<p><strong>Relist Finished!</strong></p>';
750
            x.innerHTML += '<p><strong>Relist Finished!</strong></p>';
755
            if (!x.className.includes("process-errors")) {
751
            if (!x.className.includes("process-errors")) {