Changeset 273060
- Timestamp:
- Dec 3, 2014, 11:06:15 AM (8 years ago)
- Branches:
- ng_0.9
- Children:
- 74f246
- Parents:
- 71a07e
- Location:
- content
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
content/vI_storage.js
r71a07e r273060 38 38 39 39 var storage = { 40 initTime: null, // used to trace different objects of same type40 timeStampID: null, // used to trace different objects of same type 41 41 focusedElement: null, 42 42 … … 51 51 52 52 clean: function () { 53 Log.debug("clean . storageElem-time " + storage.initTime);53 Log.debug("clean"); 54 54 storage.multipleRecipients = null; 55 55 storage.lastCheckedEmail = {}; … … 68 68 replacement_functions: { 69 69 awSetInputAndPopupValue: function (inputElem, inputValue, popupElem, popupValue, rowNumber) { 70 Log.debug(" awSetInputAndPopupValue '" + inputElem.id + "'" + " storageElem-time " + storage.initTime);70 Log.debug("[" + storage.timeStampID + "] " + "awSetInputAndPopupValue '" + inputElem.id + "'"); 71 71 storage.original_functions.awSetInputAndPopupValue(inputElem, inputValue, popupElem, popupValue, rowNumber); 72 72 storage.__updateVIdentityFromStorage(inputElem, storage.currentWindow); … … 103 103 currentWindow: null, 104 104 init: function () { 105 if (!this.initTime) 106 this.initTime = (new Date()).toLocaleTimeString(); 105 if (!this.timeStampID) { 106 this.timeStampID = parseInt((new Date()).getTime() / 100) % 864000; // give object unified id (per day) 107 Log = vI.setupLogging("virtualIdentity.storage[" + this.timeStampID + "]"); 108 } 107 109 if (!storage.initialized) { 108 Log.debug("initializing storage request environment storageElem-time " + storage.initTime);110 Log.debug("initializing storage request environment"); 109 111 storage._rdfDatasourceAccess = new vI.rdfDatasourceAccess(); 110 112 … … 134 136 storage.initialized = true; 135 137 } else { 136 Log.debug("storage request environment already initialized storageElem-time " + storage.initTime);138 Log.debug("storage request environment already initialized"); 137 139 } 138 140 … … 157 159 firstUsedInputElement: null, // this stores the first Element for which a Lookup in the Storage was successfull 158 160 __updateVIdentityFromStorage: function (inputElement, currentWindow) { 159 Log.debug("__updateVIdentityFromStorage storageElem-time " + storage.initTime);161 Log.debug("__updateVIdentityFromStorage"); 160 162 if (!vI.vIprefs.get("storage")) { 161 163 Log.debug("Storage deactivated"); -
content/v_identity.js
r71a07e r273060 37 37 38 38 var main = { 39 initTime: null,39 timeStampID: null, 40 40 _smartIdentity: null, 41 41 … … 217 217 // initialization // 218 218 init: function () { 219 if (!main.initTime) 220 main.initTime = (new Date()).toLocaleTimeString(); 221 Log.debug("init set main-time " + main.initTime); 219 if (!this.timeStampID) { 220 this.timeStampID = parseInt((new Date()).getTime() / 100) % 864000; // give object unified id (per day) 221 Log = vI.setupLogging("virtualIdentity.main[" + this.timeStampID + "]"); 222 } 222 223 window.removeEventListener('load', main.init, false); 223 224 window.removeEventListener('compose-window-init', main.init, true); … … 247 248 248 249 initSystemStage1: function () { 249 Log.debug("initSystemStage1. main-time " + main.initTime);250 Log.debug("initSystemStage1."); 250 251 document.getElementById("virtualIdentityExtension_msgIdentityClone").init(); 251 252 vI.statusmenu.init(); … … 254 255 255 256 initSystemStage2: function () { 256 Log.debug("initSystemStage2. main-time " + main.initTime);257 Log.debug("initSystemStage2."); 257 258 Log.debug("document.title=" + document.title + " gMsgCompose=" + gMsgCompose + " msgIdentityClone=" + document.getElementById("virtualIdentityExtension_msgIdentityClone")) 258 259 vI.initReplyTo(window);
Note: See TracChangeset
for help on using the changeset viewer.