X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/b6054ddecbc4d4a9b8e822ff8f0ace386e5e6e00..66cccc3c93b4cd7d98c14564db63ee9831c4047e:/templates/skeleton.tmpl diff --git a/templates/skeleton.tmpl b/templates/skeleton.tmpl index 7964aca..94802c4 100644 --- a/templates/skeleton.tmpl +++ b/templates/skeleton.tmpl @@ -27,58 +27,16 @@ function helppopup(name){ if (window.focus){helpWin.focus();} return false; } - -Ajax.Responders.register({ - onCreate: function(){ - if (Ajax.activeRequestCount > 0) { - document.getElementById("loadingnotice").style.display = 'block'; - } - }, - onComplete: function(){ - if (Ajax.activeRequestCount == 0) { - document.getElementById("loadingnotice").style.display = 'none'; - } - } -}); -function replaceFunc(transport) { - try { - d = transport.responseText.evalJSON(); - } catch (e) { - \$('body').innerHTML = '
'+transport.responseText+'
' - return; - } - for(key in d) { - \$(key).innerHTML = d[key]; - } -} - -function jsFormSubmit(location, elt){ - new Ajax.Request(location, {method: 'post', - parameters: Form.serialize(elt)+'&js=true', - onSuccess: replaceFunc, - onComplete: function() {Form.enable(elt);} - }); - Form.disable(elt); - return false; -} - -function rowFormSubmit(elt, retpage){ - new Ajax.Request('command', {method: 'post', - parameters: Form.serialize(elt)+'&js='+retpage, - onSuccess: replaceFunc - }); - return false; -} - -window.onload = { - //Fix bug with disabled elements - $$('form').each(Form.enable); -} - +#if True +
+

We are in the process of modifying the service. Things likely will not work.

+
+#end if +
#if $varExists('error_text')

STDERR:

$error_text
@@ -86,7 +44,7 @@ window.onload = {
#if not $varExists('simple') or not $simple -

[You are logged in as $user.username.]

+

[You are logged in as $user.]

LOADING
-
+
+#if $varExists('result') +$result +#end if +
$body #if not $varExists('simple') or not $simple