KUMobile

API Docs for: 0.0.2

KUMobile.Transfer

Module: KUMobile

Contains all transfer related functions for loading and controlling the transfer page.

loadByCollege

()

Loads and displays the current set of transfer items searched by college.

Example:

KUMobile.Transfer.loadByCollege();

loadByCourse

()

Loads and displays the current set of transfer items searched by course.

Example:

KUMobile.Transfer.loadByCourse();

reinitialize

()

Reinitializes all properties of KUMobile.Transfer as if to restore a new/default instance.

Example:

KUMobile.Transfer.reinitialize();

lastCollege

string

Represents the last college the user has searched for in the transfer

Default: ""

lastState

string private

Contains the latest separator keyvalue so we can detect when a new separator is needed.

lastValue

string

Represents the last value the user has searched for in the transfer

Default: ""

listQueue

Array private

Contains the current list of article DOM

  • tag items that still need to be added to the DOM (much faster to add all at once after load is done downloading). This helps prevent the application from seeming to hang or become unresponsive.

  • loading

    boolean

    Is the transfer page loading?

    Default: false

    sentTimeout

    Object private

    Contains the last timeout call sent. This allows us to restart the timeout if the user re-searches in any way (dropdown, or searchbar). The major benefit of this is that it gives us the feeling of incremental searching, e.g we send a timeout of some milliseconds whenever the KEY_UP event triggers, as well as cancelling out the last timeout we sent.

    type

    string

    Type of searching for Kettering's transfer. Represents the method of searching that will be used by the system.

    Default: "course"

    typing

    boolean

    Is the user currently typing?

    Default: false

    changeTypeToCollege

    Triggered when user chooses the type 'college'. For this we need to rearrange some of the DOM elements.

    changeTypeToCourse

    Triggered when user chooses the type 'course'. For this we need to rearrange some of the DOM elements.

    collegeChange

    Triggered when the user does a change to the college drop down box. When this happens, we need to redo the search.

    directSearch

    Triggered when the user does a direct change. The direct change includes typing then changing focus or pressing the clear button. This is redundant to the incremental search event, except for the clear button!!

    incrementalSearch

    Triggered when the user does a key up event in order to simulate incremental searching for the attached search bar.

    pageCreate

    Triggered when the transfer page is first created based on jQuery Mobile pagecreate event. This is called after the page itself is created but before any jQuery Mobile styling is applied.

    pageInit

    Triggered when the transfer page is first initialized based on jQuery Mobile pageinit event.