mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-06-03 16:48:38 -04:00
Refactoring PHP init code.
This commit is contained in:
parent
5043a5188b
commit
b67c22f33b
5 changed files with 79 additions and 68 deletions
|
@ -17,12 +17,12 @@ modulejs.define('info', ['$'], function ($) {
|
|||
$.getJSON('server/php/index.php', {action: 'get', checks: true}, function (json) {
|
||||
|
||||
if (json) {
|
||||
$('.idx-file .value').text(json.checks['idx']);
|
||||
$('.idx-file .value').text(json.checks['path_index']);
|
||||
$('.test').each(function () {
|
||||
|
||||
setCheckResult(this, json.checks[$(this).data('id')]);
|
||||
});
|
||||
$('.test.php .result').text(json.checks['phpversion']);
|
||||
$('.test.php .result').text(json.checks['php_version']);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue