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.options({
|
||||
value: data.key
|
||||
value: data.key,
|
||||
width: 248
|
||||
})
|
||||
.bindEvent({
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue