mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/11795] Get rid of pagination JS variables
Move pagination variables to data attributes Replace A_BASE_URL with BASE_URL and use TWIG to escape it PHPBB3-11795
This commit is contained in:
@@ -41,7 +41,7 @@ function jumpto()
|
||||
{
|
||||
var page = prompt('{LA_JUMP_PAGE}{L_COLON}', '{ON_PAGE}');
|
||||
var per_page = '{PER_PAGE}';
|
||||
var base_url = '{A_BASE_URL}';
|
||||
var base_url = '{{ BASE_URL|e('js') }}';
|
||||
|
||||
if (page !== null && !isNaN(page) && page == Math.floor(page) && page > 0)
|
||||
{
|
||||
|
Reference in New Issue
Block a user