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?',
query = [];
Ox.forEach(data, function(value, key) {
if (['in', 'out'].indexOf(key) > -1) {
value = value.toFixed(3);
}
if (key[0] != '_') {
query.push(
encodeURIComponent(key) + '=' + encodeURIComponent(value)