Compare commits
No commits in common. "14f9f247bc2b0b676a2b5c2746cf433a656b00ba" and "e04cf94edd37f7357175f2d513062a95c4282e50" have entirely different histories.
14f9f247bc
...
e04cf94edd
|
@ -109,12 +109,12 @@ function sortBy(column) {
|
|||
for (let i = 1; i < (rows.length - 2); i++) {
|
||||
let x = rows[i]
|
||||
let rowXId = x.id
|
||||
let rowXNumber = rowXId.match(/\d+/)
|
||||
let rowXNumber = rowXId.charAt(rowXId.length -1)
|
||||
let valueX = document.getElementById(column + '_' + rowXNumber).value
|
||||
|
||||
let y = rows[i + 1]
|
||||
let rowYId = y.id
|
||||
let rowYNumber = rowYId.match(/\d+/)
|
||||
let rowYNumber = rowYId.charAt(rowYId.length -1)
|
||||
let valueY = document.getElementById(column + '_' + rowYNumber).value
|
||||
|
||||
let currentSortOrder = document.getElementById(column + '_sort')
|
||||
|
|
|
@ -35,7 +35,7 @@ class Router
|
|||
|
||||
/*
|
||||
* This method takes a route like /admin/users/{user} and creates a regex to match on call
|
||||
* More complex routes like /posts/{thread}/show/{page} are supported as well.
|
||||
* More complex routes as /posts/{thread}/show/{page} are supported as well.
|
||||
*/
|
||||
function addRoute(string $name, string $route, Closure $callback): void
|
||||
{
|
||||
|
@ -84,7 +84,7 @@ class Router
|
|||
|
||||
foreach ($this->dynamicRoutes as $route) {
|
||||
// PHPStorm doesn't know that $parameters are always available,
|
||||
// (as these are dynamic routes) so I init the array just to make PHPStorm happy.
|
||||
// (as it this are dynamic routes) so I init the array just to make PHPStorm happy.
|
||||
$parameters = [];
|
||||
if (preg_match(pattern: $route->getRegex(), subject: $requestUri, matches: $matches)) {
|
||||
foreach ($route->getParameters() as $id => $parameter) {
|
||||
|
|
Loading…
Reference in New Issue