mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-15 01:32:55 -07:00
@tidusjar pointed out runtime error!!
This commit is contained in:
parent
8f3c4ca1b2
commit
7a2a057346
2 changed files with 14 additions and 8 deletions
|
@ -49,6 +49,7 @@ namespace Ombi.UI.NinjectModules
|
||||||
Bind<ISonarrCacher>().To<SonarrCacher>();
|
Bind<ISonarrCacher>().To<SonarrCacher>();
|
||||||
Bind<ISickRageCacher>().To<SickRageCacher>();
|
Bind<ISickRageCacher>().To<SickRageCacher>();
|
||||||
Bind<IRecentlyAdded>().To<RecentlyAdded>();
|
Bind<IRecentlyAdded>().To<RecentlyAdded>();
|
||||||
|
Bind<IMassEmail>().To<RecentlyAdded>();
|
||||||
Bind<IRadarrCacher>().To<RadarrCacher>();
|
Bind<IRadarrCacher>().To<RadarrCacher>();
|
||||||
Bind<IPlexContentCacher>().To<PlexContentCacher>();
|
Bind<IPlexContentCacher>().To<PlexContentCacher>();
|
||||||
Bind<IJobFactory>().To<CustomJobFactory>();
|
Bind<IJobFactory>().To<CustomJobFactory>();
|
||||||
|
|
|
@ -64,6 +64,11 @@
|
||||||
<small>Supports HTML</small>
|
<small>Supports HTML</small>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<div>
|
||||||
|
<button id="testSendMassEmailBtn" class="btn btn-primary-outline">Send Test to Admin<div id="testSendMassEmailSpinner"></div></button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div>
|
<div>
|
||||||
<button id="sendMassEmailBtn" class="btn btn-primary-outline">Send Mass Email (WIP Needs Backend Code Still)<div id="sendMassEmailSpinner"></div></button>
|
<button id="sendMassEmailBtn" class="btn btn-primary-outline">Send Mass Email (WIP Needs Backend Code Still)<div id="sendMassEmailSpinner"></div></button>
|
||||||
|
@ -116,26 +121,26 @@
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if (response) {
|
if (response) {
|
||||||
generateNotify(response.message, "success");
|
generateNotify(response.message, "success");
|
||||||
$('#testEmailSpinner').attr("class", "fa fa-check");
|
$('#testSendMassEmailSpinner').attr("class", "fa fa-check");
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
generateNotify(response.message, "danger");
|
generateNotify(response.message, "danger");
|
||||||
$('#testEmailSpinner').attr("class", "fa fa-times");
|
$('#testSendMassEmailSpinner').attr("class", "fa fa-times");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
error: function (e) {
|
error: function (e) {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
generateNotify("Something went wrong!", "danger");
|
generateNotify("Something went wrong!", "danger");
|
||||||
$('#testEmailSpinner').attr("class", "fa fa-times");
|
$('#testSendMassEmailSpinner').attr("class", "fa fa-times");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#sendMassEmailBtn').click(function (e) {
|
$('#testSendMassEmailBtn').click(function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var base = '@Html.GetBaseUrl()';
|
var base = '@Html.GetBaseUrl()';
|
||||||
var url = createBaseUrl(base, '/admin/testmassadminemail');
|
var url = createBaseUrl(base, '/admin/testmassadminemail');
|
||||||
$('#sendMassEmailSpinner').attr("class", "fa fa-spinner fa-spin");
|
$('#testSendMassEmailSpinner').attr("class", "fa fa-spinner fa-spin");
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: url,
|
url: url,
|
||||||
|
@ -144,17 +149,17 @@
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if (response) {
|
if (response) {
|
||||||
generateNotify(response.message, "success");
|
generateNotify(response.message, "success");
|
||||||
$('#sendMassEmailSpinner').attr("class", "fa fa-check");
|
$('#testSendMassEmailSpinner').attr("class", "fa fa-check");
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
generateNotify(response.message, "danger");
|
generateNotify(response.message, "danger");
|
||||||
$('#sendMassEmailSpinner').attr("class", "fa fa-times");
|
$('#testSendMassEmailSpinner').attr("class", "fa fa-times");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
error: function (e) {
|
error: function (e) {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
generateNotify("Something went wrong!", "danger");
|
generateNotify("Something went wrong!", "danger");
|
||||||
$('#sendMassEmailSpinner').attr("class", "fa fa-times");
|
$('#testSendMassEmailSpinner').attr("class", "fa fa-times");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue