mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-21 05:43:19 -07:00
More changes for the urlbase #72
This commit is contained in:
parent
94aee87882
commit
51f8e2a95c
10 changed files with 90 additions and 50 deletions
|
@ -1,4 +1,5 @@
|
|||
@Html.Partial("_Sidebar")
|
||||
@using PlexRequests.UI.Helpers
|
||||
@Html.Partial("_Sidebar")
|
||||
@{
|
||||
int port;
|
||||
if (Model.EmailPort == 0)
|
||||
|
@ -106,6 +107,7 @@
|
|||
<script>
|
||||
$(function () {
|
||||
|
||||
var base = '@Html.GetBaseUrl()';
|
||||
$('#save').click(function (e) {
|
||||
e.preventDefault();
|
||||
var port = $('#EmailPort').val();
|
||||
|
@ -134,6 +136,8 @@
|
|||
});
|
||||
|
||||
$('#testEmail').click(function (e) {
|
||||
|
||||
var url = createBaseUrl(base, '/admin/testemailnotification');
|
||||
e.preventDefault();
|
||||
var port = $('#EmailPort').val();
|
||||
if (isNaN(port)) {
|
||||
|
@ -144,7 +148,7 @@
|
|||
$.ajax({
|
||||
type: $form.prop("method"),
|
||||
data: $form.serialize(),
|
||||
url: '/admin/testemailnotification',
|
||||
url: url,
|
||||
dataType: "json",
|
||||
success: function (response) {
|
||||
if (response.result === true) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue