tool_templatelibrary/search

This module adds ajax search functions to the template library page.

Source:
License:
  • http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Methods

(inner) queueRefresh(callback, delay)

Source:

Call the specified function after a delay. If this function is called again before the function is executed, the function will only be executed once.

Parameters:
Name Type Description
callback function
delay Number

The time in milliseconds to delay.

(inner) refreshSearch(themename)

Source:

Get the current values for the form inputs and refresh the list of matching templates.

Parameters:
Name Type Description
themename String

The naeme of the theme.

(inner) reloadListTemplate(templateList)

Source:

The ajax call has returned with a new list of templates.

Parameters:
Name Type Description
templateList Array.<String>

List of template ids.