for a grid in a component, cancel delete fails, issue 879, thanks simonm3
This commit is contained in:
2
VERSION
2
VERSION
@@ -1 +1 @@
|
||||
Version 2.00.0 (2012-07-11 18:21:38) dev
|
||||
Version 2.00.0 (2012-07-11 18:23:46) dev
|
||||
|
||||
@@ -1357,10 +1357,12 @@ class A(DIV):
|
||||
(self['component'],self['target'] or '',d)
|
||||
self['_href'] = self['_href'] or '#null'
|
||||
elif self['callback']:
|
||||
returnfalse="var e = arguments[0] || window.event; e.cancelBubble=true; if (e.stopPropagation) e.stopPropagation();"
|
||||
if d:
|
||||
self['_onclick']="if(confirm(w2p_ajax_confirm_message||'Are you sure you want o delete this object?')){ajax('%s',[],'%s');%s};return false;" % (self['callback'],self['target'] or '',d)
|
||||
self['_onclick']="if(confirm(w2p_ajax_confirm_message||'Are you sure you want o delete this object?')){ajax('%s',[],'%s');%s};%s" % \
|
||||
(self['callback'],self['target'] or '',d, returnfalse)
|
||||
else:
|
||||
self['_onclick']="ajax('%s',[],'%s');%sreturn false;" % \
|
||||
self['_onclick']="ajax('%s',[],'%s');%sreturn false" % \
|
||||
(self['callback'],self['target'] or '',d)
|
||||
self['_href'] = self['_href'] or '#null'
|
||||
elif self['cid']:
|
||||
|
||||
Reference in New Issue
Block a user