Files
FHC-Core/xul/planner/chrome/content/browser-overlay.js
T
Christian Paminger d513512768
2011-10-07 08:18:50 +00:00

22 lines
758 B
JavaScript
Executable File

var planner = {
onLoad: function() {
// initialization code
this.initialized = true;
this.strings = document.getElementById("planner-strings");
},
onMenuItemCommand: function(e) {
var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"]
.getService(Components.interfaces.nsIPromptService);
promptService.alert(window, this.strings.getString("helloMessageTitle"),
this.strings.getString("helloMessage"));
},
onToolbarButtonCommand: function(e) {
// just reuse the function above. you can change this, obviously!
planner.onMenuItemCommand(e);
}
};
window.addEventListener("load", planner.onLoad, false);