python - Displaying a temporary message while loading a page - Django admin -
i'm using django admin , i'm looking showing message user while page loading (something like: please wait...). there way show temporary message if user clicked 'admin:appname_modelname_changelist'
link (load object change).
i'm not using ajax transfer request.
i'm looking ajaxstart , ajaxcomplete functions in order control start/end loading page.
you override admin template , add javascript onclick handler on link show loader (with jquery example).
overriding admin templates: https://docs.djangoproject.com/en/1.9/ref/contrib/admin/#overriding-admin-templates
jquery onclick handler: https://api.jquery.com/click/
Comments
Post a Comment