[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/ -> javascript-static.js (summary)

Add module to list of available modules that can be loaded from YUI.

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

Defines 29 functions

  checkall()
  checknone()
  select_all_in_element_with_id()
  select_all_in()
  deselect_all_in()
  confirm_if()
  findParentNode()
  findChildNodes()
  unmaskPassword()
  filterByParent()
  fix_column_widths()
  fix_column_width()
  insertAtCursor()
  addonload()
  getElementsByClassName()
  increment_filename()
  right_to_left()
  openpopup()
  close_window()
  show_item()
  destroy_item()
  focuscontrol()
  old_onload_focus()
  build_querystring()
  build_windowoptionsstring()
  convert_object_to_string()
  stripHTML()
  updateProgressBar()
  hide_item()

Functions
Functions that are not part of a class:

checkall()   X-Ref
No description

checknone()   X-Ref
No description

select_all_in_element_with_id(id, checked)   X-Ref
Either check, or uncheck, all checkboxes inside the element with id is

param: id the id of the container
param: checked the new state, either '' or 'checked'.

select_all_in(elTagName, elClass, elId)   X-Ref
No description

deselect_all_in(elTagName, elClass, elId)   X-Ref
No description

confirm_if(expr, message)   X-Ref
No description

findParentNode(el, elName, elClass, elId)   X-Ref
No description

findChildNodes(start, tagName, elementClass, elementID, elementName)   X-Ref
No description

unmaskPassword(id)   X-Ref
No description

filterByParent(elCollection, parentFinder)   X-Ref
No description

fix_column_widths()   X-Ref
No description

fix_column_width(colName)   X-Ref
No description

insertAtCursor(myField, myValue)   X-Ref
No description

addonload(fn)   X-Ref
No description

getElementsByClassName(oElm, strTagName, name)   X-Ref
Replacement for getElementsByClassName in browsers that aren't cool enough

Relying on the built-in getElementsByClassName is far, far faster than
using YUI.

Note: the third argument used to be an object with odd behaviour. It now
acts like the 'name' in the HTML5 spec, though the old behaviour is still
mimicked if you pass an object.

param: {Node} oElm The top-level node for searching. To search a whole
param: {String} strTagName filter by tag names
param: {String} name same as HTML5 spec

increment_filename(filename, ignoreextension)   X-Ref
Increment a file name.

param: string file name.
param: boolean ignoreextension do not extract the extension prior to appending the
return: string the incremented file name.

right_to_left()   X-Ref
Return whether we are in right to left mode or not.

return: boolean

openpopup(event, args)   X-Ref
No description

close_window(e)   X-Ref
No description

show_item(itemid)   X-Ref
Used in a couple of modules to hide navigation areas when using AJAX


destroy_item(itemid)   X-Ref
No description

focuscontrol(controlid)   X-Ref
Tranfer keyboard focus to the HTML element with the given id, if it exists.

param: controlid the control id.

old_onload_focus(formid, controlname)   X-Ref
Transfers keyboard focus to an HTML element based on the old style style of focus
This function should be removed as soon as it is no longer used


build_querystring(obj)   X-Ref
No description

build_windowoptionsstring(obj)   X-Ref
No description

convert_object_to_string(obj, separator)   X-Ref
No description

stripHTML(str)   X-Ref
No description

updateProgressBar(id, percent, msg, estimate)   X-Ref
No description

hide_item(itemid)   X-Ref
Used in a couple of modules to hide navigation areas when using AJAX




Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1