From 0e69c987a97ea62003e9431c25aaeac2264f9951 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 20 Nov 2014 13:19:46 +0000 Subject: [PATCH] typos --- static/js/entitiesDialog.js | 4 ++-- static/js/entity.js | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/static/js/entitiesDialog.js b/static/js/entitiesDialog.js index c083931f..e23da8d8 100644 --- a/static/js/entitiesDialog.js +++ b/static/js/entitiesDialog.js @@ -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; -}; \ No newline at end of file +}; diff --git a/static/js/entity.js b/static/js/entity.js index 3813e0fa..1624ba5d 100644 --- a/static/js/entity.js +++ b/static/js/entity.js @@ -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) { } ); }); -}; \ No newline at end of file +};