diff --git a/eventhub/src/EventHub.Web/Pages/Events/Components/AttendeesArea/RegistrationAreaViewComponent.cs b/eventhub/src/EventHub.Web/Pages/Events/Components/AttendeesArea/RegistrationAreaViewComponent.cs index f301829..64c592e 100644 --- a/eventhub/src/EventHub.Web/Pages/Events/Components/AttendeesArea/RegistrationAreaViewComponent.cs +++ b/eventhub/src/EventHub.Web/Pages/Events/Components/AttendeesArea/RegistrationAreaViewComponent.cs @@ -8,7 +8,7 @@ namespace EventHub.Web.Pages.Events.Components.AttendeesArea { [Widget( AutoInitialize = true, - RefreshUrl = "/Widgets/EventRegistrationArea" + RefreshUrl = "/Widgets/EventAttendeesArea" )] public class AttendeesAreaViewComponent : AbpViewComponent { @@ -18,7 +18,7 @@ namespace EventHub.Web.Pages.Events.Components.AttendeesArea public async Task InvokeAsync(Guid eventId) { - return View(); + return View("~/Pages/Events/Components/AttendeesArea/Default.cshtml"); } } } diff --git a/eventhub/src/EventHub.Web/Pages/Events/Components/RegistrationArea/RegistrationAreaViewComponent.cs b/eventhub/src/EventHub.Web/Pages/Events/Components/RegistrationArea/RegistrationAreaViewComponent.cs index 2ed8f60..c3cec29 100644 --- a/eventhub/src/EventHub.Web/Pages/Events/Components/RegistrationArea/RegistrationAreaViewComponent.cs +++ b/eventhub/src/EventHub.Web/Pages/Events/Components/RegistrationArea/RegistrationAreaViewComponent.cs @@ -19,7 +19,7 @@ namespace EventHub.Web.Pages.Events.Components.RegistrationArea public async Task InvokeAsync(Guid eventId) { - return View(); + return View("~/Pages/Events/Components/RegistrationArea/Default.cshtml"); } } } diff --git a/eventhub/src/EventHub.Web/Pages/Events/Components/RegistrationArea/registration-area.js b/eventhub/src/EventHub.Web/Pages/Events/Components/RegistrationArea/registration-area.js index 14856cb..6fe3c35 100644 --- a/eventhub/src/EventHub.Web/Pages/Events/Components/RegistrationArea/registration-area.js +++ b/eventhub/src/EventHub.Web/Pages/Events/Components/RegistrationArea/registration-area.js @@ -1,10 +1,12 @@ (function () { abp.widgets.RegistrationArea = function ($wrapper) { + var widgetManager = $wrapper.data('abp-widget-manager'); + function init() { $wrapper.find('#EventRegisterButton').click(function(e){ e.preventDefault(); - alert("TODO: register"); + widgetManager.refresh(); }); }