Skip to content

Commit

Permalink
These are functions, not methods
Browse files Browse the repository at this point in the history
git-svn-id: svn://cherokee-project.com/CTK/trunk@5949 5dc97367-97f1-0310-9951-d761b3857238
  • Loading branch information
taher committed Dec 15, 2010
1 parent eb91d89 commit a8885a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CTK/Druid.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,11 +285,11 @@ def DruidContent__JS_to_goto (internal_id, url):
def DruidContent__JS_to_close (internal_id):
return '$("#%s").each(function() {%s});' %(internal_id, JS_BUTTON_CLOSE)

def DruidContent__JS_if_external_submit (self, code):
def DruidContent__JS_if_external_submit (code):
return "if ((typeof (CTK_druid_external_submit) != 'undefined') && " +\
" (CTK_druid_external_submit)) {%s}" %(code)

def DruidContent__JS_if_internal_submit (self, code):
def DruidContent__JS_if_internal_submit (code):
return "if ((typeof (CTK_druid_external_submit) == 'undefined') || " +\
" (! CTK_druid_external_submit)) {%s}" %(code)

Expand Down

0 comments on commit a8885a8

Please sign in to comment.