Mercurial > personas_backend
changeset 134:aaa032194990
Got rid of a TODO by renaming a file.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Thu, 03 Apr 2008 12:34:26 -0700 |
parents | 8993609e7004 |
children | bc25c5570ad8 |
files | personasbackend/personas/templates/personas/legacy_persona.xul personasbackend/personas/templates/personas/static_persona.xul personasbackend/personas/views.py |
diffstat | 3 files changed, 18 insertions(+), 19 deletions(-) [+] |
line wrap: on
line diff
--- a/personasbackend/personas/templates/personas/legacy_persona.xul Thu Apr 03 12:31:49 2008 -0700 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ -<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" - flex="1" - style="background-repeat: no-repeat;" - onload="document.documentElement.style.backgroundImage = 'url({{image}})'"> - - <!-- Because CSS image loads don't block the load/pageshow events in Firefox 2, - - we load the image in an image tag, which does block those events, and then - - set the background-image property once the image has finished loading. --> - <image id="image" collapsed="true"/> - - <script type="application/javascript;version=1.7"> - <![CDATA[ - document.getElementById("image").setAttribute("src", "{{image}}"); - document.documentElement.style.backgroundPosition = "{{position}}"; - ]]> - </script> -</window>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/personasbackend/personas/templates/personas/static_persona.xul Thu Apr 03 12:34:26 2008 -0700 @@ -0,0 +1,17 @@ +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + flex="1" + style="background-repeat: no-repeat;" + onload="document.documentElement.style.backgroundImage = 'url({{image}})'"> + + <!-- Because CSS image loads don't block the load/pageshow events in Firefox 2, + - we load the image in an image tag, which does block those events, and then + - set the background-image property once the image has finished loading. --> + <image id="image" collapsed="true"/> + + <script type="application/javascript;version=1.7"> + <![CDATA[ + document.getElementById("image").setAttribute("src", "{{image}}"); + document.documentElement.style.backgroundPosition = "{{position}}"; + ]]> + </script> +</window>
--- a/personasbackend/personas/views.py Thu Apr 03 12:31:49 2008 -0700 +++ b/personasbackend/personas/views.py Thu Apr 03 12:34:26 2008 -0700 @@ -16,8 +16,7 @@ position = "top right" return render_to_response( - # TODO: Rename the file to static_persona.xul. - "personas/legacy_persona.xul", + "personas/static_persona.xul", { "image" : img_src, "position" : position }, mimetype = "application/vnd.mozilla.xul+xml" )