normalize in/out values

This commit is contained in:
j 2012-06-25 16:56:26 +02:00
parent cb6100020e
commit f45e940c94

View file

@ -60,6 +60,9 @@ pandora.ui.embedDialog = function(data) {
+ '/' + pandora.user.ui.item + '/embed?', + '/' + pandora.user.ui.item + '/embed?',
query = []; query = [];
Ox.forEach(data, function(value, key) { Ox.forEach(data, function(value, key) {
if (['in', 'out'].indexOf(key) > -1) {
value = value.toFixed(3);
}
if (key[0] != '_') { if (key[0] != '_') {
query.push( query.push(
encodeURIComponent(key) + '=' + encodeURIComponent(value) encodeURIComponent(key) + '=' + encodeURIComponent(value)