Skip to content

Commit

Permalink
fix js strings to use dump_json()
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes authored and amercader committed Apr 30, 2012
1 parent 9a15502 commit 3fb1a29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ckan/lib/helpers.py
Expand Up @@ -676,8 +676,8 @@ def group_link(group):
url = url_for(controller='group', action='read', id=group['name'])
return link_to(group['name'], url)

def dump_json(obj):
return json.dumps(obj)
def dump_json(obj, **kw):
return json.dumps(obj, **kw)

def auto_log_message(*args):
# auto_log_message() used to need c passing as the first arg
Expand Down
2 changes: 1 addition & 1 deletion ckan/templates/js_strings.html
Expand Up @@ -14,7 +14,7 @@
* Used in application.js.
*/
CKAN.Strings = ${
h.json.dumps(dict(
h.dump_json(dict(
checking = _('Checking...'),
urlIsTooShort = _('Type at least two characters...'),
urlIsUnchanged = _('This is the current URL.'),
Expand Down

0 comments on commit 3fb1a29

Please sign in to comment.