1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-12 11:15:43 +02:00

Save button will be disabled until page is loaded, prevents issues with user presses save before the page is fully loaded (and AJAX is used to save).

This commit is contained in:
markus101 2011-02-14 17:59:23 -08:00
parent ff44d05a72
commit 9a7eb8d552
5 changed files with 10 additions and 6 deletions

View File

@ -224,13 +224,13 @@ input[type="text"]:hover
background: #C0D6FF;
}
.button
#save_button
{
border: 1px solid #006;
background: #ccf;
}
.button:hover
#save_button:hover
{
border: 1px solid #f00;
background: #eef;

View File

@ -10,6 +10,7 @@
resetForm: false
};
$('#form').ajaxForm(options);
$('#save_button').attr('disabled', '');
});
function showRequest(formData, jqForm, options) {
@ -131,7 +132,7 @@
</div>
</fieldset>
<input type="submit" value="Save" class="submitButton"/>
<input type="submit" id="save_button" value="Save" disabled="disabled" />
<% } %>
</fieldset>

View File

@ -10,6 +10,7 @@
resetForm: false
};
$('#form').ajaxForm(options);
$('#save_button').attr('disabled', '');
});
function showRequest(formData, jqForm, options) {
@ -38,7 +39,7 @@
</div>
<p>
<input type="submit" value="Save" />
<input type="submit" id="save_button" value="Save" disabled="disabled" />
</p>
</fieldset>
<% } Html.EndForm();%>

View File

@ -11,6 +11,7 @@
resetForm: false
};
$('#form').ajaxForm(options);
$('#save_button').attr('disabled', '');
});
function saveOrder(jqForm, options) {
@ -131,7 +132,7 @@
<%= Html.ValidationMessageFor(m => m.NzbsrusHash)%>
</div>
<br />
<input type="submit" value="Save" />
<input type="submit" id="save_button" value="Save" disabled="disabled" />
</fieldset>
<% } %>

View File

@ -12,6 +12,7 @@
resetForm: false
};
$('#form').ajaxForm(options);
$('#save_button').attr('disabled', '');
});
function showRequest(formData, jqForm, options) {
@ -61,7 +62,7 @@
</div>
<div style="margin-top: 10px; padding-left: 5px;">
<input type="submit" class="button" value="Save" />
<input type="submit" id="save_button" value="Save" disabled="disabled" />
</div>
</div>