From a299fa6e47b2725570630ad15e0b172b493972db Mon Sep 17 00:00:00 2001 From: rolux Date: Fri, 12 Jul 2013 20:32:32 +0000 Subject: [PATCH] UI controller: add default edit points --- static/js/pandora/UI.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/static/js/pandora/UI.js b/static/js/pandora/UI.js index 73b7854c1..15d1d5821 100644 --- a/static/js/pandora/UI.js +++ b/static/js/pandora/UI.js @@ -161,6 +161,15 @@ pandora.UI = (function() { } } + if (args.edit) { + if ( + !pandora.user.ui.editPoints[args.edit] + && !args['editPoints.' + args.edit] + ) { + add['editPoints.' + args.edit] = {clip: '', 'in': 0, out: 0, position: 0}; + } + } + // items in args trigger events, items in add do not [args, add].forEach(function(obj, isAdd) { Ox.forEach(obj, function(val, key) {