[advancedcontentfilter] Move from vue-resource to jQuery ajax

- Remove commented code
- Add custom $.ajaxJSON function
- Add error message display when showVariables fails
- Use Friendica core vue script path
This commit is contained in:
Hypolite Petovan 2018-04-17 20:37:23 -04:00
parent 4c4a8da612
commit faad559799
3 changed files with 56 additions and 48 deletions

View file

@ -416,5 +416,5 @@ function advancedcontentfilter_get_variables_guid(ServerRequestInterface $reques
$return[str_replace('-', '_', $key)] = $value;
}
return str_replace('\\\'', '\'', var_export($return, true));
return json_encode(['variables' => str_replace('\\\'', '\'', var_export($return, true))]);
}