allow add_button(...,'javascript:')
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.7.4-stable+timestamp.2013.11.24.20.32.35
|
Version 2.7.4-stable+timestamp.2013.11.25.15.21.21
|
||||||
|
|||||||
+3
-2
@@ -2221,8 +2221,9 @@ class FORM(DIV):
|
|||||||
submit = self.element('input[type=submit]')
|
submit = self.element('input[type=submit]')
|
||||||
submit.parent.append(
|
submit.parent.append(
|
||||||
INPUT(_type="button", _value=value, _class=_class,
|
INPUT(_type="button", _value=value, _class=_class,
|
||||||
_onclick=self.REDIRECT_JS % url))
|
_onclick=url if url.startswith('javascript:') else
|
||||||
|
self.REDIRECT_JS % url))
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def confirm(text='OK', buttons=None, hidden=None):
|
def confirm(text='OK', buttons=None, hidden=None):
|
||||||
if not buttons:
|
if not buttons:
|
||||||
|
|||||||
Reference in New Issue
Block a user