mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 13:23:20 -07:00
parent
b96087d089
commit
3d2c787062
11 changed files with 161 additions and 17 deletions
|
@ -214,6 +214,12 @@ $(document).on("click", ".approve", function (e) {
|
|||
var buttonId = e.target.id;
|
||||
var $form = $('#approve' + buttonId);
|
||||
|
||||
if ($('#' + buttonId).text === "Loading...") {
|
||||
return;
|
||||
}
|
||||
|
||||
loadingButton(buttonId, "success");
|
||||
|
||||
$.ajax({
|
||||
type: $form.prop('method'),
|
||||
url: $form.prop('action'),
|
||||
|
|
|
@ -60,7 +60,7 @@ $(document).on("click", ".dropdownTv", function (e) {
|
|||
$(document).on("click", ".requestMovie", function (e) {
|
||||
var buttonId = e.target.id;
|
||||
$("#" + buttonId).prop("disabled", true);
|
||||
|
||||
loadingButton(buttonId, "primary");
|
||||
e.preventDefault();
|
||||
|
||||
var $form = $('#form' + buttonId);
|
||||
|
|
|
@ -23,3 +23,15 @@ function checkJsonResponse(response) {
|
|||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function loadingButton(elementId, originalCss) {
|
||||
$('#' + elementId).removeClass("btn-" + originalCss + "-outline");
|
||||
$('#' + elementId).addClass("btn-primary-outline");
|
||||
$('#' + elementId).html("<i class='fa fa-spinner fa-spin'></i> Loading...");
|
||||
}
|
||||
|
||||
function finishLoading(elementId, originalCss, html) {
|
||||
$('#' + elementId).removeClass("btn-primary-outline");
|
||||
$('#' + elementId).addClass("btn-" + originalCss + "-outline");
|
||||
$('#' + elementId).html(html);
|
||||
}
|
|
@ -71,7 +71,7 @@ namespace PlexRequests.UI.Helpers
|
|||
Log.Trace("SickRage Add Result: ");
|
||||
Log.Trace(result.DumpJson());
|
||||
|
||||
return result;
|
||||
return result.Result;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,8 +1,8 @@
|
|||
<form method="POST" id="mainForm">
|
||||
<br />
|
||||
Old Password <input class="form-control" name="OldPassword" type="password" />
|
||||
New Password <input class="form-control" name="NewPassword" type="password" />
|
||||
New Password again <input class="form-control" name="NewPasswordAgain" type="password" />
|
||||
Old Password <input class="form-control form-control-custom" name="OldPassword" type="password" /><br />
|
||||
New Password <input class="form-control form-control-custom" name="NewPassword" type="password" /><br />
|
||||
New Password again <input class="form-control form-control-custom" name="NewPasswordAgain" type="password" />
|
||||
<br />
|
||||
<br />
|
||||
<input class="btn btn-success-outline" id="save" type="submit" value="Change Password" />
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<form method="POST">
|
||||
Username <input class="form-control" type="text" name="Username"/>
|
||||
Username <input class="form-control form-control-custom" type="text" name="Username"/>
|
||||
<br/>
|
||||
Password <input class="form-control" name="Password" type="password"/>
|
||||
Password <input class="form-control form-control-custom" name="Password" type="password"/>
|
||||
<br/>
|
||||
Remember Me <input name="RememberMe" type="checkbox" value="True"/>
|
||||
<br/>
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
<!-- Movie tab -->
|
||||
<div role="tabpanel" class="tab-pane active" id="MoviesTab">
|
||||
<div class="input-group">
|
||||
<input id="movieSearchContent" type="text" class="form-control">
|
||||
<input id="movieSearchContent" type="text" class="form-control form-control-custom">
|
||||
<div class="input-group-addon">
|
||||
<i id="movieSearchButton" class="fa fa-search"></i>
|
||||
</div>
|
||||
|
@ -40,7 +40,7 @@
|
|||
<!-- TV tab -->
|
||||
<div role="tabpanel" class="tab-pane" id="TvShowTab">
|
||||
<div class="input-group">
|
||||
<input id="tvSearchContent" type="text" class="form-control">
|
||||
<input id="tvSearchContent" type="text" class="form-control form-control-custom">
|
||||
<div class="input-group-addon">
|
||||
<i id="tvSearchButton" class="fa fa-search"></i>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue