This commit is contained in:
j 2014-11-20 13:19:46 +00:00
parent 1571ff4e2e
commit 0e69c987a9
2 changed files with 6 additions and 6 deletions

View file

@ -341,7 +341,7 @@ pandora.ui.entitiesDialog = function(options) {
$input = Ox.Input({height: 248, type: 'textarea'});
}
$input.options({
value: data.key
value: data.key,
width: 248
})
.bindEvent({
@ -361,4 +361,4 @@ pandora.ui.entitiesDialog = function(options) {
return that;
};
};

View file

@ -6,13 +6,13 @@ pandora.ui.entity = function(options, callback) {
// options: {id, view}
pandora.api.getEntity({
id: options.id
}, function(data) {
}, function(response) {
Ox.get(
'/static/html/entities.' + data.type + '.' + options.view + '.html',
'/static/html/entities.' + response.data.type + '.' + options.view + '.html',
function(html) {
html = html.replace(/\{(.+?)\}/g, function() {
var parts = arguments[1].split('|'),
value = data[parts[0]];
value = response.data[parts[0]];
return Ox.isEmpty(value)
|| Ox.isNull(value)
|| Ox.isUndefined(value)
@ -24,4 +24,4 @@ pandora.ui.entity = function(options, callback) {
}
);
});
};
};