[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-admin/js/ -> application-passwords.js (summary)

(no description)

File Size: 219 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 3 functions

  handleErrorResponse()
  addNotice()
  clearNotices()

Functions
Functions that are not part of a class:

handleErrorResponse( xhr, textStatus, errorThrown )   X-Ref
Handles an error response from the REST API.

param: {jqXHR} xhr The XHR object from the ajax call.
param: {string} textStatus The string categorizing the ajax request's status.
param: {string} errorThrown The HTTP status error text.

addNotice( message, type )   X-Ref
Displays a message in the Application Passwords section.

returns: {jQuery} The notice element.
param: {string} message The message to display.
param: {string} type    The notice type. Either 'success' or 'error'.

clearNotices()   X-Ref
Clears notice messages from the Application Passwords section.




Generated : Sat Nov 23 08:20:01 2024 Cross-referenced by PHPXref