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")
<div class="col-sm-8 col-sm-push-1">
<form class="form-horizontal" method="POST" id="mainForm">
@ -53,7 +54,7 @@
<script>
$(function () {
var base = '@Html.GetBaseUrl()';
$('#save').click(function (e) {
e.preventDefault();
@ -80,11 +81,12 @@
$('#testPushbullet').click(function (e) {
e.preventDefault();
var url = createBaseUrl(base, '/admin/testpushbulletnotification');
var $form = $("#mainForm");
$.ajax({
type: $form.prop("method"),
data: $form.serialize(),
url: '/admin/testpushbulletnotification',
url: url,
dataType: "json",
success: function (response) {
if (response.result === true) {