{"action":"created","issue":{"url":"https://api.github.com/repos/adamhajari/spyre/issues/20","labels_url":"https://api.github.com/repos/adamhajari/spyre/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/adamhajari/spyre/issues/20/comments","events_url":"https://api.github.com/repos/adamhajari/spyre/issues/20/events","html_url":"https://github.com/adamhajari/spyre/pull/20","id":65392427,"number":20,"title":"Fix handling of option values containing whitespace.","user":{"login":"tramdas","id":237242,"avatar_url":"https://avatars.githubusercontent.com/u/237242?v=3","gravatar_id":"","url":"https://api.github.com/users/tramdas","html_url":"https://github.com/tramdas","followers_url":"https://api.github.com/users/tramdas/followers","following_url":"https://api.github.com/users/tramdas/following{/other_user}","gists_url":"https://api.github.com/users/tramdas/gists{/gist_id}","starred_url":"https://api.github.com/users/tramdas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tramdas/subscriptions","organizations_url":"https://api.github.com/users/tramdas/orgs","repos_url":"https://api.github.com/users/tramdas/repos","events_url":"https://api.github.com/users/tramdas/events{/privacy}","received_events_url":"https://api.github.com/users/tramdas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-31T07:57:59Z","updated_at":"2015-04-06T02:55:31Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/adamhajari/spyre/pulls/20","html_url":"https://github.com/adamhajari/spyre/pull/20","diff_url":"https://github.com/adamhajari/spyre/pull/20.diff","patch_url":"https://github.com/adamhajari/spyre/pull/20.patch"},"body":"On OSX (10.10.1 and 10.10.2) I have encountered a problem when using option values with whitespaces. For example, consider `StockExample`, if I modify the inputs as follows:\r\n```\r\n    inputs = [{     \"input_type\":'dropdown',\r\n                    \"label\": 'Company', \r\n                    \"options\" : [ {\"label\": \"Google\", \"value\":\"GOOG\"},\r\n                                  {\"label\": \"Yahoo\", \"value\":\"YHOO\"},\r\n                                  {\"label\": \"Hello World\", \"value\":\"HELLO WORLD\"},\r\n                                  {\"label\": \"Apple\", \"value\":\"AAPL\"}],\r\n                    \"variable_name\": 'ticker', \r\n                    \"action_id\": \"update_data\" }]\r\n```\r\nSelecting the \"Hello World\" option on the dashboard passes a truncated parameter back to `getPlot`, i.e. `params['ticker']` ==> `HELLO`. It turns out the whitespace handling was broken in the jQuery side of things. \r\n\r\nWith this patch, given the above example we can get `params['ticker']` ==> `HELLO WORLD` as expected.\r\n\r\nThis fix is not yet applied to radiobuttons, checkgroups, or slider controls."},"comment":{"url":"https://api.github.com/repos/adamhajari/spyre/issues/comments/89897979","html_url":"https://github.com/adamhajari/spyre/pull/20#issuecomment-89897979","issue_url":"https://api.github.com/repos/adamhajari/spyre/issues/20","id":89897979,"user":{"login":"adamhajari","id":1072820,"avatar_url":"https://avatars.githubusercontent.com/u/1072820?v=3","gravatar_id":"","url":"https://api.github.com/users/adamhajari","html_url":"https://github.com/adamhajari","followers_url":"https://api.github.com/users/adamhajari/followers","following_url":"https://api.github.com/users/adamhajari/following{/other_user}","gists_url":"https://api.github.com/users/adamhajari/gists{/gist_id}","starred_url":"https://api.github.com/users/adamhajari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamhajari/subscriptions","organizations_url":"https://api.github.com/users/adamhajari/orgs","repos_url":"https://api.github.com/users/adamhajari/repos","events_url":"https://api.github.com/users/adamhajari/events{/privacy}","received_events_url":"https://api.github.com/users/adamhajari/received_events","type":"User","site_admin":false},"created_at":"2015-04-06T02:55:31Z","updated_at":"2015-04-06T02:55:31Z","body":"@tramdas try testing this with the example_show_all_the_inputs.py app. you'll need to make a new elif clause specific to dropdown since the text input types also falls under the else clause. "}}