Textpattern PHP Cross Reference Content Management Systems

Summary: /textpattern/textpattern.js - 2720 lines - 82402 bytes - Source - Print

Description: Collection of client-side tools.

Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 17 functions

checkCookies()
verify()
setCookie()
getCookie()
deleteCookie()
toggleColumn()
toggleDisplay()
toggleDisplayHref()
setClassDisplay()
toggleClassRemember()
setClassRemember()
sendAsyncEvent()
txpAsyncLink()
txp_search()
txp_expand_collapse_all()
txp_article_preview()
section_theme_show()

Functions

Functions that are not part of a class:

checkCookies()  line: 39
Checks if HTTP cookies are enabled.

return: {boolean}
verify(msg)  line: 56
Basic confirmation for potentially powerful choices (like deletion,
for example).

return: {boolean} TRUE if user confirmed the action
param: {string}  msg The message
setCookie(name, value, days)  line: 409
Sets a HTTP cookie.

param: {string}  name  The name
param: {string}  value The value
param: {integer} days  Expires in
getCookie(name)  line: 432
Gets a HTTP cookie's value.

return: {string} The cookie
param: {string} name The name
deleteCookie(name)  line: 459
Deletes a HTTP cookie.

param: {string} name The cookie
toggleColumn(sel, $sel, vis)  line: 470
Toggles column's visibility and saves the state.

return: {boolean} Returns FALSE
param: {string}  sel The column selector object
toggleDisplay(id)  line: 495
Toggles panel's visibility and saves the state.

return: {boolean} Returns FALSE
param: {string}  id The element ID
toggleDisplayHref()  line: 521
Direct show/hide referred #segment; decorate parent lever.

setClassDisplay(className, show)  line: 545
Shows/hides matching elements.

param: {string}  className Targeted element's class
param: {boolean} show      TRUE to display
toggleClassRemember(className)  line: 557
Toggles panel's visibility and saves the state to a HTTP cookie.

param: {string} classname The HTML class
setClassRemember(className, force)  line: 573
Toggle visibility of matching elements based on a cookie value.

param: {string}  className The HTML class
param: {string}  force     The value
sendAsyncEvent(data, fn, format)  line: 591
Load data from the server using a HTTP POST request.

return: {object} this
param: {object} data   POST payload
param: {object} fn     Success handler
param: {string} format Response data format, defaults to 'xml'
txpAsyncLink(event, txpEvent)  line: 1165
Sends a link using AJAX and processes the HTML response.

return: {object} this
param: {object} options          Options
param: {string} options.dataType The response data type
param: {object} options.success  The success callback
param: {object} options.error    The error callback
txp_search()  line: 1629
Search tool.

txp_expand_collapse_all(ev)  line: 1797
Set expanded/collapsed nature of all twisty boxes in a panel.

The direction can either be 'expand' or 'collapse', passed
in as an argument to the handler.

param: {event} ev Event that triggered the function
txp_article_preview()  line: 2167
No description
section_theme_show(skin)  line: 2408
Display assets based on the selected theme.

param: string skin The theme name from which to show assets

title

Body