[#39,demo][s]: add dropdown for selecting type of backend for the url you are importing.

This commit is contained in:
Rufus Pollock
2012-02-27 20:52:25 +00:00
parent a9c1b2ae07
commit b4c729b7bb
2 changed files with 11 additions and 2 deletions

View File

@@ -76,11 +76,13 @@ function setupLoadFromWebstore(callback) {
e.preventDefault();
var $form = $(e.target);
var source = $form.find('input[name="source"]').val();
var type = $form.find('select[name="backend_type"]').val();
var dataset = new recline.Model.Dataset({
id: 'gold-prices',
id: 'my-dataset',
url: source,
webstore_url: source
},
'webstore'
type
);
callback(dataset);
});