Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

Commit

Permalink
Merge pull request #333 from datagovuk/fix-broken-preview
Browse files Browse the repository at this point in the history
Fix broken JavaScript
  • Loading branch information
rossjones committed Jan 26, 2016
2 parents 552f6ba + 8f28790 commit 4b53a44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/dgu/theme/src/scripts/dgu-package.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ $(function() {
var commentsSpinner = new Spinner(spinConfig).spin(spinDiv);

// DATASET_ID is only set on dataset page, not on resource page.
if(DATASET_ID in window) {
if('DATASET_ID' in window) {
var url = '/comment/get/'+window.DATASET_ID+'?comments_per_page=999999';
$.ajax({
url: url,
Expand Down

0 comments on commit 4b53a44

Please sign in to comment.