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?',
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue