Skip to content

Commit

Permalink
[2285] Only show embed button when the dataexplorer is available
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Murray committed Apr 24, 2012
1 parent 8eb071c commit 111187e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ckan/public/scripts/application.js
Expand Up @@ -1383,6 +1383,8 @@ CKAN.DataPreview = function ($, my) {
iframeHeight.change(updateLink);
updateLink();

$('.preview-header .btn').show();

// will have to refactor if this can get called multiple times
Backbone.history.start();
}
Expand Down
2 changes: 1 addition & 1 deletion ckan/templates/package/resource_read.html
Expand Up @@ -170,7 +170,7 @@
<div class="resource-preview">
<div class="preview-header">
<h3>Preview</h3>
<a class="btn btn-primary" data-toggle="modal" href=".modal-data-viewer-embed-dialog">Embed</a>
<a style="display: none;" class="btn btn-primary" data-toggle="modal" href=".modal-data-viewer-embed-dialog">Embed</a>
</div>
<div id="ckanext-datapreview"></div>
</div>
Expand Down

0 comments on commit 111187e

Please sign in to comment.