This class implements the methods to create/modify and interact with the key manager.
webpg. | This class implements the methods to create/modify and interact with the key manager. |
Functions | |
init | Sets up the reference to the webpg.background class and related objects |
buildKeylistProxy | Calls the buildKeyList method if the desired keylist is not already built (unless forced), after setting the wait dialog |
buildKeylist | Generates the formatted, interactive keylist and populates the DOM. |
buildKeylistProxy: function( keyList, type, openKey, openSubkey, openUID, changedTab )
Calls the buildKeyList method if the desired keylist is not already built (unless forced), after setting the wait dialog
keyList | <JSON obj> A JSON object containing the keys and their associated data |
type | <str> The type of keylist being generated (“public”/”private”) |
openKey | <str> The ID for the Key to render in the open (viewing) status |
openSubkey | <str> The ID for the Subkey to render in the open (viewing) status |
openUID | <int> The index number for the UID to render in the open (viewing) status |
changedTab | <bool> Passed if we are just changing tabs |
buildKeylist: function( keyList, type, openKey, openSubkey, openUID )
Generates the formatted, interactive keylist and populates the DOM. This function is a mess and needs some serious attention; it is ugly, but works quickly for what all it does.
keyList | <JSON obj> A JSON object containing the keys and their associated data |
type | <str> The type of keylist being generated (“public”/”private”) |
openKey | <str> The ID for the Key to render in the open (viewing) status |
openSubkey | <str> The ID for the Subkey to render in the open (viewing) status |
openUID | <int> The index number for the UID to render in the open (viewing) status |
Sets up the reference to the webpg.background class and related objects
init: function( browserWindow )
Calls the buildKeyList method if the desired keylist is not already built (unless forced), after setting the wait dialog
buildKeylistProxy: function( keyList, type, openKey, openSubkey, openUID, changedTab )
Generates the formatted, interactive keylist and populates the DOM.
buildKeylist: function( keyList, type, openKey, openSubkey, openUID )