[demo][s]: allow loading of demo data viewer from a webstore url.

This commit is contained in:
rgrp
2011-11-08 16:12:56 +00:00
parent 5eb06b982e
commit 07275a8fcc
3 changed files with 34 additions and 2 deletions

View File

@@ -101,6 +101,7 @@ recline.BackendWebstore = Backbone.Model.extend({
// this switching on object type is rather horrible
// think may make more sense to do work in individual objects rather than in central Backbone.sync
if (this.__type__ == 'Dataset') {
var dataset = this;
// get the schema and return
var base = this.backend.get('url');
var schemaUrl = base + '/schema.json';