Skip to content
Snippets Groups Projects
Select Git revision
  • 12e12fd7800dd541fc1612af0289b73636fe2b09
  • main default protected
  • studip-rector
  • ci-opt
  • course-members-export-as-word
  • data-vue-app
  • pipeline-improvements
  • webpack-optimizations
  • rector
  • icon-renewal
  • http-client-and-factories
  • jsonapi-atomic-operations
  • vueify-messages
  • tic-2341
  • 135-translatable-study-areas
  • extensible-sorm-action-parameters
  • sorm-configuration-trait
  • jsonapi-mvv-routes
  • docblocks-for-magic-methods
19 results

tablesorter.js

Blame
  • Forked from Stud.IP / Stud.IP
    Source project has a limited visibility.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    tablesorter.js 1.12 KiB
    import { $gettext } from '../lib/gettext.js'
    
    import "tablesorter/dist/js/jquery.tablesorter"
    import "tablesorter/dist/js/extras/jquery.tablesorter.pager.min.js"
    import "tablesorter/dist/js/jquery.tablesorter.widgets.js"
    
    jQuery.tablesorter.addParser({
        id: 'htmldata',
        is: function (s, table, cell, $cell) {
            var c = table.config,
                p = c.parserMetadataName || 'sortValue';
            return $(cell).data(p) !== undefined;
        },
        format: function (s, table, cell) {
            var c = table.config,
                p = c.parserMetadataName || 'sortValue';
            return $(cell).data(p);
        },
        type: 'text'
    });
    
    jQuery.tablesorter.language = {
        sortAsc      : $gettext('Aufsteigend sortiert, '),
        sortDesc     : $gettext('Absteigend sortiert, '),
        sortNone     : $gettext('Keine Sortierung angewandt, '),
        sortDisabled : $gettext('Sortieren ist deaktiviert'),
        nextAsc      : $gettext('aktivieren, um eine aufsteigende Sortierung anzuwenden'),
        nextDesc     : $gettext('aktivieren, um eine absteigende Sortierung anzuwenden'),
        nextNone     : $gettext('aktivieren, um keine Sortierung anzuwenden')
    };