This commit is contained in:
Massimo Di Pierro
2012-03-03 00:00:05 -06:00
parent 1be5ca9d2e
commit 1f8754155b
2 changed files with 2 additions and 5 deletions
+1 -1
View File
@@ -1 +1 @@
Version 1.99.6 (2012-03-02 20:26:11) stable
Version 1.99.6 (2012-03-02 23:59:45) stable
+1 -4
View File
@@ -122,9 +122,6 @@ def LOAD(c=None, f='index', args=None, vars=None,
is added on page loading without delay.
"""
from html import TAG, DIV, URL, SCRIPT, XML
create_div = True
if target is not None:
create_div = False
if args is None: args = []
vars = Storage(vars or {})
target = target or 'c'+str(random.random())[2:]
@@ -157,7 +154,7 @@ def LOAD(c=None, f='index', args=None, vars=None,
else:
statement = "web2py_component('%s','%s');" % (url, target)
script = SCRIPT(statement, _type="text/javascript")
if create_div:
if not content is None:
return TAG[''](script, DIV(content,**attr))
else:
return TAG[''](script)