Mercurial > powerbox
diff extension/modules/content-injector.js @ 5:c01a64fefbf5 default tip
Added mock 'capability request' page.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Fri, 07 Aug 2009 14:20:28 -0700 |
parents | 1c02976d8809 |
children |
line wrap: on
line diff
--- a/extension/modules/content-injector.js Thu Aug 06 17:18:45 2009 -0700 +++ b/extension/modules/content-injector.js Fri Aug 07 14:20:28 2009 -0700 @@ -31,13 +31,18 @@ if (oldNotification) nBox.removeNotification(oldNotification); + function onClickButton() { + // TODO: Implement a real callback. + const CAP_URI = "chrome://powerbox/content/request.html"; + tabbrowser.selectedTab = tabbrowser.addTab(CAP_URI); + } + nBox.appendNotification(REQUEST_BOX_TEXT, REQUEST_BOX_NAME, null, nBox.PRIORITY_INFO_MEDIUM, [{accessKey: null, - // TODO: Implement a real callback. - callback: function() {}, + callback: onClickButton, label: REQUEST_BOX_BUTTON_TEXT, popup: null}]); }