From a64c8d612be5a00d1832dfbc4e8bda422c072173 Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 6 Feb 2014 14:07:36 +0000 Subject: [PATCH] fix a bug in UI.js --- static/js/UI.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/static/js/UI.js b/static/js/UI.js index eb387195..e91dc02c 100644 --- a/static/js/UI.js +++ b/static/js/UI.js @@ -164,6 +164,9 @@ pandora.UI = (function() { } if (args.edit) { + if (!pandora.user.ui.edits[args.edit]) { + add['edits.' + that.encode(args.edit)] = {}; + } Ox.forEach(editSettings, function(value, key) { var editsKey = 'edits.' + that.encode(args.edit) + '.' + key; add[editsKey] = editsKey in args ? args[editsKey] @@ -171,6 +174,7 @@ pandora.UI = (function() { : value; }); } + if (args.text) { add['texts.' + that.encode(args.text)] = Ox.map(textSettings, function(value, key) { var textsKey = 'texts.' + that.encode(args.text),