@@ 347-352 (lines=6) @@ | ||
344 | } |
|
345 | break; |
|
346 | ||
347 | case 'select2-family': |
|
348 | $page = Filter::postInteger('page'); |
|
349 | $query = Filter::post('q', null, ''); |
|
350 | header('Content-Type: application/json'); |
|
351 | echo json_encode(Select2::familySearch($WT_TREE, $page, $query)); |
|
352 | break; |
|
353 | ||
354 | case 'select2-flag': |
|
355 | $page = Filter::postInteger('page'); |
|
@@ 354-359 (lines=6) @@ | ||
351 | echo json_encode(Select2::familySearch($WT_TREE, $page, $query)); |
|
352 | break; |
|
353 | ||
354 | case 'select2-flag': |
|
355 | $page = Filter::postInteger('page'); |
|
356 | $query = Filter::post('q', null, ''); |
|
357 | header('Content-Type: application/json'); |
|
358 | echo json_encode(Select2::flagSearch($page, $query)); |
|
359 | break; |
|
360 | ||
361 | case 'select2-individual': |
|
362 | $page = Filter::postInteger('page'); |
|
@@ 361-366 (lines=6) @@ | ||
358 | echo json_encode(Select2::flagSearch($page, $query)); |
|
359 | break; |
|
360 | ||
361 | case 'select2-individual': |
|
362 | $page = Filter::postInteger('page'); |
|
363 | $query = Filter::post('q', null, ''); |
|
364 | header('Content-Type: application/json'); |
|
365 | echo json_encode(Select2::individualSearch($WT_TREE, $page, $query)); |
|
366 | break; |
|
367 | ||
368 | case 'select2-media': |
|
369 | $page = Filter::postInteger('page'); |
|
@@ 368-373 (lines=6) @@ | ||
365 | echo json_encode(Select2::individualSearch($WT_TREE, $page, $query)); |
|
366 | break; |
|
367 | ||
368 | case 'select2-media': |
|
369 | $page = Filter::postInteger('page'); |
|
370 | $query = Filter::post('q', null, ''); |
|
371 | header('Content-Type: application/json'); |
|
372 | echo json_encode(Select2::mediaObjectSearch($WT_TREE, $page, $query)); |
|
373 | break; |
|
374 | ||
375 | case 'select2-note': |
|
376 | $page = Filter::postInteger('page'); |
|
@@ 375-380 (lines=6) @@ | ||
372 | echo json_encode(Select2::mediaObjectSearch($WT_TREE, $page, $query)); |
|
373 | break; |
|
374 | ||
375 | case 'select2-note': |
|
376 | $page = Filter::postInteger('page'); |
|
377 | $query = Filter::post('q', null, ''); |
|
378 | header('Content-Type: application/json'); |
|
379 | echo json_encode(Select2::noteSearch($WT_TREE, $page, $query)); |
|
380 | break; |
|
381 | ||
382 | case 'select2-place': |
|
383 | $page = Filter::postInteger('page'); |
|
@@ 382-387 (lines=6) @@ | ||
379 | echo json_encode(Select2::noteSearch($WT_TREE, $page, $query)); |
|
380 | break; |
|
381 | ||
382 | case 'select2-place': |
|
383 | $page = Filter::postInteger('page'); |
|
384 | $query = Filter::post('q', null, ''); |
|
385 | header('Content-Type: application/json'); |
|
386 | echo json_encode(Select2::placeSearch($WT_TREE, $page, $query, true)); |
|
387 | break; |
|
388 | ||
389 | case 'select2-repository': |
|
390 | $page = Filter::postInteger('page'); |
|
@@ 389-394 (lines=6) @@ | ||
386 | echo json_encode(Select2::placeSearch($WT_TREE, $page, $query, true)); |
|
387 | break; |
|
388 | ||
389 | case 'select2-repository': |
|
390 | $page = Filter::postInteger('page'); |
|
391 | $query = Filter::post('q', null, ''); |
|
392 | header('Content-Type: application/json'); |
|
393 | echo json_encode(Select2::repositorySearch($WT_TREE, $page, $query)); |
|
394 | break; |
|
395 | ||
396 | case 'select2-source': |
|
397 | $page = Filter::postInteger('page'); |
|
@@ 396-401 (lines=6) @@ | ||
393 | echo json_encode(Select2::repositorySearch($WT_TREE, $page, $query)); |
|
394 | break; |
|
395 | ||
396 | case 'select2-source': |
|
397 | $page = Filter::postInteger('page'); |
|
398 | $query = Filter::post('q', null, ''); |
|
399 | header('Content-Type: application/json'); |
|
400 | echo json_encode(Select2::sourceSearch($WT_TREE, $page, $query)); |
|
401 | break; |
|
402 | ||
403 | case 'theme': |
|
404 | // Change the current theme |