Skip to content

Commit

Permalink
[#2639,bugfix][xs]: remove reference to recline.Model.Dataset.restore…
Browse files Browse the repository at this point in the history
… (has been removed from recline) and do the dataset restore by hand (trivial).
  • Loading branch information
rufuspollock authored and amercader committed Aug 17, 2012
1 parent bbd0fe6 commit 9e16c46
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ckan/public/scripts/application.js
Expand Up @@ -1493,7 +1493,13 @@ CKAN.DataPreview = function ($, my) {
my.$dialog.html('<h4>Loading ... <img src="http://assets.okfn.org/images/icons/ajaxload-circle.gif" class="loading-spinner" /></h4>');

// Restore the Dataset from the given reclineState.
var dataset = recline.Model.Dataset.restore(reclineState);
var datasetInfo = _.extend({
url: reclineState.url,
backend: reclineState.backend
},
reclineState.dataset
);
var dataset = new recline.Model.Dataset(datasetInfo);

// Only create the view defined in reclineState.currentView.
// TODO: tidy this up.
Expand Down

0 comments on commit 9e16c46

Please sign in to comment.