Skip to content

Commit

Permalink
removed logging
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Sep 21, 2012
1 parent 86ce9c9 commit 609f3ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion ckan/public/base/datapreview/jsonpreview.js
Expand Up @@ -19,7 +19,6 @@ CKAN.JsonPreview = function ($, my) {

$.getJSON(resourceData['url'], function(data) {
var html = JSON.stringify(data, null, 4);
console.log(html);
$('#'+my.dialogId).html(html);
});
};
Expand Down
6 changes: 4 additions & 2 deletions ckan/templates/package/resource_jsonpreview.html
Expand Up @@ -5,12 +5,14 @@
{% block subtitle %}{{ h.dataset_display_name(c.package) }} - {{ h.resource_display_name(res) }}{% endblock %}

{% block page %}
<div id="ckanext-jsonpreview"></div>
<pre id="ckanext-jsonpreview">
{{_('loading...')}}
</pre>
{% endblock %}

{% block scripts %}
{{ super() }}
{% resource 'datapreview/datapreview' %}
{% resource 'datapreview/jsonpreview' %}

<script>
var preload_resource = {{ h.literal(c.resource_json) }};
Expand Down

0 comments on commit 609f3ef

Please sign in to comment.