Updates info.

This commit is contained in:
Lars Jung 2013-09-06 19:07:58 +02:00
parent 20c16d2a76
commit b37279d1a0
3 changed files with 55 additions and 53 deletions

View file

@ -1,14 +1,14 @@
modulejs.define('info', ['$'], function ($) {
var setCheckResult = function (id, result) {
var setCheckResult = function (el, result) {
var $result = $(id).find('.test-result');
var $result = $(el).find('.result');
if (result) {
$result.addClass('test-passed').text('yes');
$result.addClass('passed').text('yes');
} else {
$result.addClass('test-failed').text('no');
$result.addClass('failed').text('no');
}
},
@ -22,7 +22,7 @@ modulejs.define('info', ['$'], function ($) {
setCheckResult(this, json.checks[$(this).data('id')]);
});
$('.test.php .test-result').text(json.checks['phpversion']);
$('.test.php .result').text(json.checks['phpversion']);
}
});
};