diff options
Diffstat (limited to 'Project-Unite')
| -rw-r--r-- | Project-Unite/Views/Admin/Index.cshtml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Project-Unite/Views/Admin/Index.cshtml b/Project-Unite/Views/Admin/Index.cshtml index e9ae83f..815a20b 100644 --- a/Project-Unite/Views/Admin/Index.cshtml +++ b/Project-Unite/Views/Admin/Index.cshtml @@ -5,5 +5,10 @@ <p>Wow, an actual index page.</p> -<button class="btn btn-default" onclick="$.ajax({ url: '/API/TestNotification' });">Send test notification.</button> +<button class="btn btn-default" onclick="sendMessageToApi();">Send test notification.</button> +<script> + function sendMessageToApi() { + $.ajax({ url: "/API/TestNotification" }); + } +</script>
\ No newline at end of file |
