fixed matrix in analysis
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
function loadAnalysisMatrixNames() {
|
function loadAnalysisMatrixNames() {
|
||||||
return $.ajax({
|
return $.ajax({
|
||||||
url: "get_matrici_db.php",
|
url: "search_matrici.php?full_list=1",
|
||||||
method: "GET",
|
method: "GET",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -62,7 +62,11 @@ if (isset($_GET['macro_list'])) {
|
|||||||
echo json_encode(['success' => true, 'value' => $macros]);
|
echo json_encode(['success' => true, 'value' => $macros]);
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
// Return full matrix list (same shape as get_matrici_db.php)
|
||||||
|
if (isset($_GET['full_list'])) {
|
||||||
|
echo json_encode(['success' => true, 'value' => $matrici]);
|
||||||
|
exit;
|
||||||
|
}
|
||||||
// Search (with optional MacroMatrice filter) - multi-term AND, position-independent, ranked
|
// Search (with optional MacroMatrice filter) - multi-term AND, position-independent, ranked
|
||||||
$terms = array_values(array_filter(
|
$terms = array_values(array_filter(
|
||||||
preg_split('/\s+/u', $q, -1, PREG_SPLIT_NO_EMPTY)
|
preg_split('/\s+/u', $q, -1, PREG_SPLIT_NO_EMPTY)
|
||||||
|
|||||||
Reference in New Issue
Block a user