Mar 10, 2011 at 12:33 PM
Edited Mar 10, 2011 at 12:34 PM
I have a content part and I want to warn the user if they've not filled in an input. It's not required, but the functionality will be limitted so I want to make sure the user knows they've done it.
_services.Notifier.Warning(T("This location is not part of a map list. Select a map list if you want it to appear on one."));
to do the notifying.
First I put the checking code and in the POST version of the Editor method in the driver. The problem is this method gets called when the URL for the title is being checked using AJAX. This means that my warning message gets printed twice on the page.
Then I put it in the get method, but this also shows the message multiple times so the method must be getting called more than once.
Lastly I tried using onCreated in the handler. This also showed it mutiple times.
Ideally I want this warning to be shown anytime someone looks at the edit screen. Is there a bit of code that will only get called once when the editor view is shown or is there a way to check if a message already exists in the notify store.