Module: user_info

Contains the functionalities related to the user contact info page.
Author:
  • Joonas Konki
  • Anu Koskela
  • Mikko Kuhno
  • Henrik Paananen
  • Atte Räty
License:
  • BSD 3-clause, see LICENSE for more details.
Source:

Methods

(static) doc_ready()

This is executed after the HTML page has been loaded. This is a common procedure of all of the client-side modules to initialise the page content.
Source:

(static) saveLangBtn click()

Changes the language preference of the site when the save language button is clicked.
Source:

(static) setCurrentLanguage(user)

Checks the radio button that corresponds to the default language of the user.
Parameters:
Name Type Description
user object The current user.
Source:

(static) setUserContactInfo(user)

Goes through the contact information and sets the primary email and phone number to the corresponding fields.
Parameters:
Name Type Description
user object The current user.
Source:

(static) setUserRoles(user)

Goes through the user roles of the current user and displays the active roles.
Parameters:
Name Type Description
user object The current user.
Source: