[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

/adm/style/ -> permissions.js (summary)

(no description)

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

Defines 14 functions

  display_checkboxes()
  set_opacity()
  toggle_opacity()
  reset_opacity()
  get_radio_status()
  set_colours()
  init_colours()
  swap_options()
  mark_options()
  mark_one_option()
  reset_role()
  set_role_settings()
  match_role_settings()
  sort_and_stringify()

Functions
Functions that are not part of a class:

display_checkboxes(status)   X-Ref
Hide and show all checkboxes
status = true (show boxes), false (hide boxes)


set_opacity(e, value)   X-Ref
Change opacity of element
e = element
value = 0 (hidden) till 10 (fully visible)


toggle_opacity(block_id)   X-Ref
Reset the opacity and checkboxes
block_id = id of the element that needs to be toggled


reset_opacity(status, except_id)   X-Ref
Reset the opacity and checkboxes
value = 0 (checked) and 1 (unchecked)
except_id = id of the element not to hide


get_radio_status(index, rb)   X-Ref
Check whether we have a full radiobutton row of true
index = offset for the row of inputs (0 == first row, 1 == second, 2 == third),
rb = array of radiobuttons


set_colours(id, init, quick)   X-Ref
Set tab colours
id = panel the tab needs to be set for,
init = initialising on open,
quick = If no calculation needed, this contains the colour


init_colours(block_id)   X-Ref
Initialise advanced tab colours on first load
block_id = block that is opened


swap_options(pmask, fmask, cat, adv, view)   X-Ref
Show/hide option panels
value = suffix for ID to show
adv = we are opening advanced permissions
view = called from view permissions


mark_options(id, s)   X-Ref
Mark all radio buttons in one panel
id = table ID container, s = status ['y'/'u'/'n']


mark_one_option(id, field_name, s)   X-Ref
No description

reset_role(id)   X-Ref
(Re)set the permission role dropdown.

Try and match the set permissions to an existing role.
Otherwise reset the dropdown to "Select a role.."

returns: {void}
param: {string}    id        The fieldset identifier

set_role_settings(role_id, target_id)   X-Ref
Load role and set options accordingly


match_role_settings(id)   X-Ref
Match the set permissions against the available roles.

param: {string}    id        The parent fieldset identifier
return: {number}            The permission role identifier

sort_and_stringify(obj)   X-Ref
Sort and stringify an Object so it can be easily compared against another object.

param: {object}    obj        The object to sort (by key) and stringify
return: {string}            The sorted object as a string



Generated: Mon Nov 25 19:05:08 2024 Cross-referenced by PHPXref 0.7.1