clarify scroll method name
This commit is contained in:
		| @ -624,8 +624,7 @@ | ||||
| 						else | ||||
| 						{ | ||||
| 							AddModuleMessage(Localizer["Success.Settings.SaveSite"], MessageType.Success); | ||||
|                             // scroll to top of page so user can see messages | ||||
|                             await ScrollToTop(); | ||||
|                             await ScrollToPageTop(); | ||||
|                         } | ||||
| 					} | ||||
| 				} | ||||
| @ -694,9 +693,7 @@ | ||||
|  | ||||
| 				await NotificationService.AddNotificationAsync(new Notification(PageState.Site.SiteId, PageState.User, PageState.Site.Name + " SMTP Configuration Test", "SMTP Server Is Configured Correctly.")); | ||||
| 				AddModuleMessage(Localizer["Info.Smtp.SaveSettings"], MessageType.Info); | ||||
|  | ||||
|                 // scroll to top of page so user can see messages | ||||
|                 await ScrollToTop(); | ||||
|                 await ScrollToPageTop(); | ||||
|             } | ||||
| 			catch (Exception ex) | ||||
| 			{ | ||||
|  | ||||
| @ -372,8 +372,7 @@ else | ||||
|                 AddModuleMessage(Localizer["Message.Required.ProfileInfo"], MessageType.Warning); | ||||
|             } | ||||
|  | ||||
|             // scroll to top of page so user can see messages | ||||
|             await ScrollToTop(); | ||||
|             await ScrollToPageTop(); | ||||
|         } | ||||
|         catch (Exception ex) | ||||
|         { | ||||
|  | ||||
| @ -291,7 +291,7 @@ namespace Oqtane.Modules | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         public async Task ScrollToTop() | ||||
|         public async Task ScrollToPageTop() | ||||
|         { | ||||
|             var interop = new Interop(JSRuntime); | ||||
|             await interop.ScrollTo(0, 0, "smooth"); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 sbwalker
					sbwalker