Changeset 509348 for content/accountManagerOverlays/vI_am-Overlay.js
- Timestamp:
- Nov 3, 2014, 12:35:40 PM (8 years ago)
- Branches:
- ng_0.9
- Children:
- 7204cb
- Parents:
- 3c9c29
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
content/accountManagerOverlays/vI_am-Overlay.js
r3c9c29 r509348 24 24 25 25 Components.utils.import("resource://v_identity/vI_nameSpaceWrapper.js"); 26 virtualIdentityExtension.ns(function() { with (virtualIdentityExtension.LIB) { 27 function orig_onAccept() {}; 28 var am_Overlay = { 29 onAccept : function(aServerKeyToSelect, aFocusList) { 26 virtualIdentityExtension.ns(function () { 27 with(virtualIdentityExtension.LIB) { 28 function orig_onAccept() {}; 29 var am_Overlay = { 30 onAccept: function (aServerKeyToSelect, aFocusList) { 30 31 orig_onAccept(); 31 32 var gObserver = Components.classes["@mozilla.org/observer-service;1"]. 32 33 getService(Components.interfaces.nsIObserverService); 33 34 gObserver.notifyObservers(null, "am-acceptChanges", "other"); 34 },35 36 init : function() {35 }, 36 37 init: function () { 37 38 orig_onAccept = onAccept; 38 39 onAccept = am_Overlay.onAccept; 40 } 39 41 } 40 } 41 window.addEventListener('load', am_Overlay.init, false); 42 } });42 window.addEventListener('load', am_Overlay.init, false); 43 } 44 });
Note: See TracChangeset
for help on using the changeset viewer.