Skip to content

Commit

Permalink
Fix #1011
Browse files Browse the repository at this point in the history
  • Loading branch information
skinkie committed Jan 1, 2014
1 parent 409f0cf commit 31ba52a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions admin/CTK/CTK/Refreshable.py
Expand Up @@ -108,6 +108,9 @@ def JS_to_refresh (self, on_success='', selector=None, url=None):
if not selector:
selector = "$('#%s')" %(self.id)

if len(on_success) > 0:
on_success = "$(document).ready(function(){ %s });" % on_success

props = {'selector': selector,
'url': url or self.url,
'on_success': on_success}
Expand Down

0 comments on commit 31ba52a

Please sign in to comment.