Refactor PHP request handling and return codes.

This commit is contained in:
Lars Jung 2015-05-01 20:29:36 +02:00
parent e275ecac07
commit 6ad53ec2aa
5 changed files with 50 additions and 53 deletions

View file

@ -27,7 +27,7 @@ modulejs.define('ext/preview-img', ['_', '$', 'core/event', 'core/server', 'core
height: 0
}, function (json) {
callback(json && json.code === 0 ? json.absHref : null);
callback(json && json.code === 'RC_SUCCESS' ? json.absHref : null);
});
}