Skip to content

Commit

Permalink
Lighter recline init
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Sep 24, 2012
1 parent a67df63 commit fa12ade
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions ckan/public/base/datapreview/recline.js
Expand Up @@ -88,25 +88,6 @@ ckan.module('reclinepreview', function (jQuery, _) {
if (error.message) errorMsg += ' (' + error.message + ')';
showError(errorMsg);
});
} else if (resourceData.formatNormalized in {
'rdf+xml': '',
'owl+xml': '',
'xml': '',
'n3': '',
'n-triples': '',
'turtle': '',
'plain': '',
'atom': '',
'tsv': '',
'rss': '',
'txt': ''
}) {
// HACK: treat as plain text / csv
// pass url to jsonpdataproxy so we can load remote data (and tell dataproxy to treat as csv!)
var _url = this.jsonpdataproxyUrl + '?type=csv&url=' + resourceData.url;
this.getResourceDataDirect(_url, function(data) {
this.showPlainTextData(data);
});
}
},
initializeDataExplorer: function(dataset) {
Expand Down

0 comments on commit fa12ade

Please sign in to comment.