Skip to content
Permalink
Browse files

Scroll to top on list navigation

  • Loading branch information...
bloatware committed Jul 5, 2019
1 parent f19ad5c commit 570cd977b2dbfe077be7c6be33102743a9997a00
Showing with 2 additions and 1 deletion.
  1. +1 −1 textpattern/lib/txplib_misc.php
  2. +1 −0 textpattern/textpattern.js
@@ -5309,7 +5309,7 @@ function buildCustomSql($custom, $pairs, $exclude = array())
if ($no !== false) {
$not = ($exclude === true || in_array($k, $exclude)) ? 'NOT' : '';
list($from, $to) = explode('%%', $v) + array(null, null);
list($from, $to) = explode('%%', $v, 2) + array(null, null);
if (!isset($to)) {
$out[] = "AND $not custom_".$no." LIKE '$v'";
@@ -2583,6 +2583,7 @@ $(document).ready(function () {
if ($(this).hasClass('pophelp')) return;
e.preventDefault();
textpattern.Relay.callback('updateList', {url: $(this).attr('href'), data: $('nav.prev-next form').serializeArray()});
scroll(0, 0);
}).on('click', '.txp-list thead th a', function(e) {
e.preventDefault();
textpattern.Relay.callback('updateList', {list: '#txp-list-container', url: $(this).attr('href'), data: $('nav.prev-next form').serializeArray()});

0 comments on commit 570cd97

Please sign in to comment.
You can’t perform that action at this time.