forked from 0x2620/pandora
normalize in/out values
This commit is contained in:
parent
cb6100020e
commit
f45e940c94
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue