list.js

Summary
list.js
Variables
listOfAutoSelectThis is a tempory variable, witch contains key to select automaticaly.
savedListThe full list of key (when we filter, we haven’t all key in the list)
Functions
onLoadThis function is called when the list.xul form is show.
checkTheAutoSelectThis function select the key present in listOfAutoSelect
onAcceptThis function is called when the Ok button is pressed.
filterThis function filter the key list, based on the current value of search-textbox.

Variables

listOfAutoSelect

var listOfAutoSelect

This is a tempory variable, witch contains key to select automaticaly.

savedList

var savedList

The full list of key (when we filter, we haven’t all key in the list)

Functions

onLoad

function onLoad(win)

This function is called when the list.xul form is show.  It’s make the diffrents list of key and pre-select the key who have to be selected.

Parameters

winThe form herself.
window.arguments[0].listThe keys list.  It’s an array.
window.arguments[0].preSelectThe keys list to select.  It’s an array.
window.arguments[0].descriptionThe text to show for the prompt. window.arguments[0].title- The title of the window.

checkTheAutoSelect

function checkTheAutoSelect()

This function select the key present in listOfAutoSelect

onAccept

function onAccept()

This function is called when the Ok button is pressed.  It’s prepare the differents data to return them.

filter

function filter()

This function filter the key list, based on the current value of search-textbox.  She clear all and rebuild the list, based on savedList

var listOfAutoSelect
This is a tempory variable, witch contains key to select automaticaly.
var savedList
The full list of key (when we filter, we haven’t all key in the list)
function onLoad(win)
This function is called when the list.xul form is show.
function checkTheAutoSelect()
This function select the key present in listOfAutoSelect
function onAccept()
This function is called when the Ok button is pressed.
function filter()
This function filter the key list, based on the current value of search-textbox.
Close