| list.js | |
| Variables | |
| listOfAutoSelect | This is a tempory variable, witch contains key to select automaticaly. |
| savedList | The full list of key (when we filter, we haven’t all key in the list) |
| Functions | |
| onLoad | This function is called when the list.xul form is show. |
| checkTheAutoSelect | This function select the key present in listOfAutoSelect |
| onAccept | This function is called when the Ok button is pressed. |
| filter | This function filter the key list, based on the current value of search-textbox. |
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.
| win | The form herself. |
| window.arguments[0].list | The keys list. It’s an array. |
| window.arguments[0].preSelect | The keys list to select. It’s an array. |
| window.arguments[0].description | The text to show for the prompt. window.arguments[0].title- The title of the window. |
function checkTheAutoSelect()
This function select the key present in listOfAutoSelect
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
This is a tempory variable, witch contains key to select automaticaly.
var listOfAutoSelect
The full list of key (when we filter, we haven’t all key in the list)
var savedList
This function is called when the list.xul form is show.
function onLoad( win )
This function select the key present in listOfAutoSelect
function checkTheAutoSelect()
This function is called when the Ok button is pressed.
function onAccept()
This function filter the key list, based on the current value of search-textbox.
function filter()