Skip to content
Snippets Groups Projects
Commit c035dbc6 authored by Shane Tomlinson's avatar Shane Tomlinson
Browse files

Getting rid of the inner "dialog" and just using the form as what we overwrite.

parent 8a949c80
No related branches found
No related tags found
No related merge requests found
......@@ -76,8 +76,9 @@
if (body) {
var bodyHtml = $.View("//dialog/views/" + body, body_vars);
$("#dialog").html(bodyHtml).hide().fadeIn(ANIMATION_TIME, function() {
$("#dialog input").eq(0).focus();
var form = $("#formWrap > form");
form.html(bodyHtml).hide().fadeIn(ANIMATION_TIME, function() {
form.find("input").eq(0).focus();
});
}
},
......
......@@ -24,20 +24,19 @@
</header>
<div id="formWrap" class="cf">
<form novalidate>
<form novalidate class="cf">
<div id="dialog" class="dialog cf">
<!-- All of this is going to be replaced on startup, but we need some temporary placeholder -->
<h2>Communicating with server</h2>
<p>Just a moment while we talk with the server.</p>
</div>
<div id="error_dialog">
<h3 class="title"></h3>
<p class="content"></p>
</div>
<!-- All of this is going to be replaced on startup, but we need some temporary placeholder -->
<h2>Communicating with server</h2>
<p>Just a moment while we talk with the server.</p>
</form>
<div id="error_dialog">
<h3 class="title"></h3>
<p class="content"></p>
</div>
</div>
<footer>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment