From: phasefx Date: Sat, 31 Jan 2009 23:47:43 +0000 (+0000) Subject: DOM Inspector X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=9d36a839ffc78e1a9ab77a3ec759712362604fe3;p=Evergreen.git DOM Inspector git-svn-id: svn://svn.open-ils.org/ILS/branches/staff-client-experiment@12027 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/chrome/chrome.manifest b/Open-ILS/xul/staff_client/chrome/chrome.manifest index af124ae02d..da0c5ef6d3 100644 --- a/Open-ILS/xul/staff_client/chrome/chrome.manifest +++ b/Open-ILS/xul/staff_client/chrome/chrome.manifest @@ -17,3 +17,23 @@ content venkman-sm jar:venkman.jar!/content/venkman/sm/ overlay chrome://browser/content/browser.xul chrome://venkman/content/venkman-overlay.xul application={ec8030f7-c20a-464f-9b0e-13a3a9e97384} application={a463f10c-3994-11da-9945-000d60ca027b} locale venkman en-US jar:venkman.jar!/locale/en-US/venkman/ +locale inspector de jar:inspector.jar!/locale/de/inspector/ +overlay chrome://inspector/content/inspector.xul chrome://communicator/content/utilityOverlay.xul application={92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a} +locale inspector en-US jar:inspector.jar!/locale/en-US/inspector/ +overlay chrome://inspector/content/popupOverlay.xul chrome://inspector/content/viewers/dom/popupOverlay.xul +overlay chrome://messenger/content/mailWindowOverlay.xul chrome://inspector/content/tasksOverlay-tb.xul application={3550f703-e582-4d05-9a08-453d09bdfdc6} +overlay chrome://browser/content/macBrowserOverlay.xul chrome://inspector/content/tasksOverlay-ff.xul application={ec8030f7-c20a-464f-9b0e-13a3a9e97384} +overlay chrome://communicator/content/tasksOverlay.xul chrome://inspector/content/tasksOverlay.xul application={92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a} +overlay chrome://inspector/content/commandOverlay.xul chrome://inspector/content/viewers/styleRules/commandOverlay.xul +overlay chrome://calendar/content/calendar.xul chrome://inspector/content/tasksOverlay-sb.xul application={718e30fb-e89b-41dd-9da7-e25a45638b28} +overlay chrome://inspector/content/keysetOverlay.xul chrome://inspector/content/viewers/dom/keysetOverlay.xul +skin inspector classic/1.0 jar:inspector.jar!/skin/classic/inspector/ +overlay chrome://browser/content/browser.xul chrome://inspector/content/tasksOverlay-ff.xul application={ec8030f7-c20a-464f-9b0e-13a3a9e97384} +skin inspector modern/1.0 jar:inspector.jar!/skin/modern/inspector/ +locale inspector sk jar:inspector.jar!/locale/sk/inspector/ +overlay chrome://inspector/content/popupOverlay.xul chrome://inspector/content/viewers/styleRules/popupOverlay.xul +overlay chrome://communicator/content/pref/preferences.xul chrome://inspector/content/prefs/prefsOverlay.xul application={92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a} +content inspector jar:inspector.jar!/content/inspector/ xpcnativewrappers=no +overlay chrome://inspector/content/commandOverlay.xul chrome://inspector/content/viewers/dom/commandOverlay.xul +overlay chrome://inspector/content/inspector.xul chrome://browser/content/baseMenuOverlay.xul application={ec8030f7-c20a-464f-9b0e-13a3a9e97384} +overlay chrome://inspector/content/inspector.xul chrome://communicator/content/tasksOverlay.xul application={92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a} diff --git a/Open-ILS/xul/staff_client/chrome/content/auth/controller.js b/Open-ILS/xul/staff_client/chrome/content/auth/controller.js index a0d7756f04..82045db1f0 100644 --- a/Open-ILS/xul/staff_client/chrome/content/auth/controller.js +++ b/Open-ILS/xul/staff_client/chrome/content/auth/controller.js @@ -66,6 +66,12 @@ auth.controller.prototype = { start_debugger(); } ], + 'cmd_inspector' : [ + ['command'], + function() { + start_inspector(); + } + ], 'cmd_override' : [ ['command'], function() { diff --git a/Open-ILS/xul/staff_client/chrome/content/main/main.js b/Open-ILS/xul/staff_client/chrome/content/main/main.js index a963ad9082..121c6f90d3 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/main.js +++ b/Open-ILS/xul/staff_client/chrome/content/main/main.js @@ -48,6 +48,14 @@ function start_debugger() { ); }; +function start_inspector() { + setTimeout( + function() { + try { inspectDOMDocument(); } catch(E) { alert(E); } + }, 0 + ); +}; + function main_init() { dump('entering main_init()\n'); try { diff --git a/Open-ILS/xul/staff_client/chrome/content/main/main.xul b/Open-ILS/xul/staff_client/chrome/content/main/main.xul index 71c89e3bbc..f0cb70eb11 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/main.xul +++ b/Open-ILS/xul/staff_client/chrome/content/main/main.xul @@ -56,6 +56,7 @@