Final modifications.

This commit is contained in:
Lars Jung 2012-04-19 00:57:43 +02:00
parent de92767e5a
commit ade6cf8e0b
24 changed files with 316 additions and 275 deletions

View file

@ -14,10 +14,10 @@ module.define('h5ai-info', [jQuery, 'core/resource'], function ($, resource) {
handleChecksResponse = function (response) {
_.each(['php', 'cache', 'thumbs', 'temp', 'download'], function (test) {
$('.test').each(function () {
setCheckResult('#test-' + test, response && response[test]);
})
setCheckResult(this, response && response[$(this).data('id')]);
});
},
checks = function () {
@ -25,7 +25,7 @@ module.define('h5ai-info', [jQuery, 'core/resource'], function ($, resource) {
$.ajax({
url: resource.api(),
data: {
action: 'checks'
action: 'getchecks'
},
type: 'POST',
dataType: 'json',