Skip to content

Commit

Permalink
[2285] Correct my bad spelling.
Browse files Browse the repository at this point in the history
embeded ~> embedded
  • Loading branch information
Ian Murray committed Apr 20, 2012
1 parent bc2fd64 commit b07d1df
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ckan/config/routing.py
Expand Up @@ -183,7 +183,7 @@ def make_map():
m.connect('/dataset/{id}.{format}', action='read')
m.connect('/dataset/{id}', action='read')
m.connect('/dataset/{id}/resource/{resource_id}', action='resource_read')
m.connect('/dataset/{id}/resource/{resource_id}/embed', action='resource_embeded_dataviewer')
m.connect('/dataset/{id}/resource/{resource_id}/embed', action='resource_embedded_dataviewer')

# group
map.redirect('/groups', '/group')
Expand Down
4 changes: 2 additions & 2 deletions ckan/controllers/package.py
Expand Up @@ -734,7 +734,7 @@ def resource_read(self, id, resource_id):
qualified=True)
return render('package/resource_read.html')

def resource_embeded_dataviewer(self, id, resource_id):
def resource_embedded_dataviewer(self, id, resource_id):
"""
Embeded page for a read-only resource dataview.
"""
Expand Down Expand Up @@ -772,7 +772,7 @@ def resource_embeded_dataviewer(self, id, resource_id):

c.recline_state = json.dumps(recline_state)

return render('package/resource_embeded_dataviewer.html')
return render('package/resource_embedded_dataviewer.html')

def _parse_recline_state(self, state_version, raw_state):
if state_version != 1: # Only support one version at the moment
Expand Down
2 changes: 1 addition & 1 deletion ckan/public/scripts/application.js
Expand Up @@ -45,7 +45,7 @@ CKAN.Utils = CKAN.Utils || {};
CKAN.DataPreview.loadPreviewDialog(preload_resource);
}

var isEmbededDataviewer = $('body.package.resource_embeded_dataviewer').length > 0;
var isEmbededDataviewer = $('body.package.resource_embedded_dataviewer').length > 0;
if (isEmbededDataviewer) {
CKAN.DataPreview.loadPreviewDialogWithState(preload_resource, reclineState);
}
Expand Down

0 comments on commit b07d1df

Please sign in to comment.