fixed issue 1104, thanks Paolo Valleri

This commit is contained in:
mdipierro
2012-10-25 10:19:50 -05:00
parent 35c893d47a
commit 529dda0e6d
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.2.1 (2012-10-25 10:11:45) stable
Version 2.2.1 (2012-10-25 10:19:43) stable
+3 -2
View File
@@ -1482,8 +1482,9 @@ class A(DIV):
(self['callback'], self['target'] or '', d)
self['_href'] = self['_href'] or '#null'
elif self['cid']:
self['_onclick'] = 'web2py_component("%s","%s");%sreturn false;' % \
(self['_href'], self['cid'], d)
pre = self['pre_call'] + ';' if self['pre_call'] else ''
self['_onclick'] = '%sweb2py_component("%s","%s");%sreturn false;' % \
(pre,self['_href'], self['cid'], d)
return DIV.xml(self)