Refactoring PHP init code.

This commit is contained in:
Lars Jung 2014-05-12 00:39:27 +02:00
parent 5043a5188b
commit b67c22f33b
5 changed files with 79 additions and 68 deletions

View file

@ -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']);
}
});
};