More changes for the urlbase #72

This commit is contained in:
tidusjar 2016-04-15 14:23:32 +01:00
commit 51f8e2a95c
10 changed files with 90 additions and 50 deletions

View file

@ -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) {