Author: eallen
Date: 2010-07-28 17:53:38 -0400 (Wed, 28 Jul 2010)
New Revision: 4162
Modified:
mgmt/newdata/cumin/python/cumin/widgets.py
mgmt/newdata/cumin/python/cumin/widgets.strings
Log:
Tweak background url for forms to allow forms on the main page
Modified: mgmt/newdata/cumin/python/cumin/widgets.py
===================================================================
--- mgmt/newdata/cumin/python/cumin/widgets.py 2010-07-28 21:48:02 UTC (rev 4161)
+++ mgmt/newdata/cumin/python/cumin/widgets.py 2010-07-28 21:53:38 UTC (rev 4162)
@@ -257,6 +257,10 @@
def render_data(self, session):
return self.data
+ def render_background(self, session):
+ sep = (self.data and "?" in self.data) and ";" or
"?"
+ return "%sformBackground=1" % sep
+
def render_type(self, session):
return self.type
Modified: mgmt/newdata/cumin/python/cumin/widgets.strings
===================================================================
--- mgmt/newdata/cumin/python/cumin/widgets.strings 2010-07-28 21:48:02 UTC (rev 4161)
+++ mgmt/newdata/cumin/python/cumin/widgets.strings 2010-07-28 21:53:38 UTC (rev 4162)
@@ -684,7 +684,7 @@
[BackgroundInclude.html]
<div id="BackgroundGlass"><!-- prevents clicks since disabled
doesn't work on objects --></div>
-<object id="backgroundInclude" class="BackgroundInclude"
data="{data};formBackground=1" type="{type}" />
+<object id="backgroundInclude" class="BackgroundInclude"
data="{data}{background}" type="{type}" />
[FormHelp.javascript]
function help_window(href) {
Show replies by date