Skip to content

Commit

Permalink
Remove unnecessary sort_hints.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nigel Jewell committed Sep 26, 2021
1 parent c779cbd commit ae03239
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
8 changes: 0 additions & 8 deletions js/table_sort.js
Expand Up @@ -516,14 +516,6 @@ var SortableTableSorts = {
return 0;
},

sortMythwebTitle: function (a,b) {
// As by_no_articles in includes/sorting.php
a = a.replace(/^(An?|The)\s+/i, "");
b = b.replace(/^(An?|The)\s+/i, "");

return SortableTableSorts.sortCaseInsensitive(a, b);
},

sortMythwebPlayTime: function (a,b) {
if (a == b)
return 0;
Expand Down
4 changes: 2 additions & 2 deletions modules/tv/tmpl/default/schedules.php
Expand Up @@ -71,9 +71,9 @@ function attempt_to_show_tip(element) {
<thead>
<tr class="menu">
<?php if ($group_field != '') echo "<th class=\"list\">&nbsp;</th>\n"; ?>
<th class="x-title" sort_hint="sortMythwebTitle"><?php echo get_sort_link('title', t('Title' )); ?></th>
<th class="x-title"><?php echo get_sort_link('title', t('Title' )); ?></th>
<th class="x-priority"><?php echo get_sort_link('recpriority', t('Recording Priority' )); ?></th>
<th class="x-channel" sort_hint="sortMythwebChannel"><?php echo get_sort_link($_SESSION["prefer_channum"] ? 'channum_with_type' : 'callsign_with_type', t('Channel' )); ?></th>
<th class="x-channel"><?php echo get_sort_link($_SESSION["prefer_channum"] ? 'channum_with_type' : 'callsign_with_type', t('Channel' )); ?></th>
<th class="x-profile"><?php echo get_sort_link('profile', t('Profile' )); ?></th>
<th class="x-transcoder"><?php echo get_sort_link('transcoder', t('Transcoder')); ?></th>
<th class="x-group"><?php echo get_sort_link('recgroup', t('Recording Group')); ?></th>
Expand Down

0 comments on commit ae03239

Please sign in to comment.