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 161... Line 161...
161
    function checkpagesToProcess() {
161
    function checkpagesToProcess() {
162
        if (pagesToProcess > 0) {
162
        if (pagesToProcess > 0) {
163
            window.setTimeout(checkpagesToProcess, 100); // wait 100 milliseconds
163
            window.setTimeout(checkpagesToProcess, 100); // wait 100 milliseconds
164
        } else {
164
        } else {
165
            tableEnd();
165
            tableEnd();
166
            $("#" + tableSorterName).trigger("update").trigger("appendCache").trigger("applyWidgets");
-
 
167
            $('#selected-rows').html('0');
166
            tableSorterUpdateCounters(tableSorterName);
168
            $("#" + tableSorterName).find('thead input[type=checkbox]').prop('checked', false);
-
 
169
            $("#" + tableSorterName).find('thead input[type=checkbox]').prop('indeterminate', false);
-
 
170
            endProgressBar();
167
            endProgressBar();
171
            exportTableToCSV(tableName, 'import.csv');
168
            exportTableToCSV(tableName, 'import.csv');
172
            addNotes(noteList);
169
            addNotes(noteList);
173
        }
170
        }
174
    }
171
    }
Line 800... Line 797...
800
                    var $this = $(this);
797
                    var $this = $(this);
801
                    $this.closest('tr').toggleClass(highlightClass, this.checked);
798
                    $this.closest('tr').toggleClass(highlightClass, this.checked);
802
                    $this.trigger('updateCell', [$this.closest('td'), resort]);
799
                    $this.trigger('updateCell', [$this.closest('td'), resort]);
803
 
800
 
804
                    // handle header
801
                    // handle header
805
                    var rowCount = $('#' + tableSorterName + ' tbody tr').length + $('#' + tableSorterName + ' tbody tr:hidden').length;
802
                    var rowCount = $('#' + tableSorterName + ' tbody tr').length;
806
                    var checkedCount = $('#' + tableSorterName + ' tbody .checked').length;
803
                    var checkedCount = $('#' + tableSorterName + ' tbody .checked').length;
807
                    var ua = window.navigator.userAgent;
804
                    var ua = window.navigator.userAgent;
808
                    if (checkedCount === 0) {
805
                    if (checkedCount === 0) {
809
                        $table.add($sticky).find('thead input[type=checkbox]').prop('checked', false);
806
                        $table.add($sticky).find('thead input[type=checkbox]').prop('checked', false);
810
                        $table.add($sticky).find('thead input[type=checkbox]').prop('indeterminate', false);
807
                        $table.add($sticky).find('thead input[type=checkbox]').prop('indeterminate', false);
Line 833... Line 830...
833
                    // update all at once
830
                    // update all at once
834
                    $table[0].ignoreChange = false;
831
                    $table[0].ignoreChange = false;
835
                    $table.trigger('update', [resort]);
832
                    $table.trigger('update', [resort]);
836
 
833
 
837
                    // handle header
834
                    // handle header
838
                    var rowCount = $('#' + tableSorterName + ' tbody tr').length + $('#' + tableSorterName + ' tbody tr:hidden').length;
835
                    var rowCount = $('#' + tableSorterName + ' tbody tr').length;
839
                    var checkedCount = $('#' + tableSorterName + ' tbody .checked').length;
836
                    var checkedCount = $('#' + tableSorterName + ' tbody .checked').length;
840
                    var ua = window.navigator.userAgent;
837
                    var ua = window.navigator.userAgent;
841
                    if (checkedCount === 0) {
838
                    if (checkedCount === 0) {
842
                        $table.add($sticky).find('th[data-column=' + col + '] input[type=checkbox]').prop('checked', false);
839
                        $table.add($sticky).find('th[data-column=' + col + '] input[type=checkbox]').prop('checked', false);
843
                        $table.add($sticky).find('th[data-column=' + col + '] input[type=checkbox]').prop('indeterminate', false);
840
                        $table.add($sticky).find('th[data-column=' + col + '] input[type=checkbox]').prop('indeterminate', false);