typos
This commit is contained in:
parent
1571ff4e2e
commit
0e69c987a9
2 changed files with 6 additions and 6 deletions
|
@ -341,7 +341,7 @@ pandora.ui.entitiesDialog = function(options) {
|
||||||
$input = Ox.Input({height: 248, type: 'textarea'});
|
$input = Ox.Input({height: 248, type: 'textarea'});
|
||||||
}
|
}
|
||||||
$input.options({
|
$input.options({
|
||||||
value: data.key
|
value: data.key,
|
||||||
width: 248
|
width: 248
|
||||||
})
|
})
|
||||||
.bindEvent({
|
.bindEvent({
|
||||||
|
@ -361,4 +361,4 @@ pandora.ui.entitiesDialog = function(options) {
|
||||||
|
|
||||||
return that;
|
return that;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -6,13 +6,13 @@ pandora.ui.entity = function(options, callback) {
|
||||||
// options: {id, view}
|
// options: {id, view}
|
||||||
pandora.api.getEntity({
|
pandora.api.getEntity({
|
||||||
id: options.id
|
id: options.id
|
||||||
}, function(data) {
|
}, function(response) {
|
||||||
Ox.get(
|
Ox.get(
|
||||||
'/static/html/entities.' + data.type + '.' + options.view + '.html',
|
'/static/html/entities.' + response.data.type + '.' + options.view + '.html',
|
||||||
function(html) {
|
function(html) {
|
||||||
html = html.replace(/\{(.+?)\}/g, function() {
|
html = html.replace(/\{(.+?)\}/g, function() {
|
||||||
var parts = arguments[1].split('|'),
|
var parts = arguments[1].split('|'),
|
||||||
value = data[parts[0]];
|
value = response.data[parts[0]];
|
||||||
return Ox.isEmpty(value)
|
return Ox.isEmpty(value)
|
||||||
|| Ox.isNull(value)
|
|| Ox.isNull(value)
|
||||||
|| Ox.isUndefined(value)
|
|| Ox.isUndefined(value)
|
||||||
|
@ -24,4 +24,4 @@ pandora.ui.entity = function(options, callback) {
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue