From 038be832360c1a1c13fdce6616f4f39750823535 Mon Sep 17 00:00:00 2001 From: phasefx Date: Thu, 11 Mar 2010 21:02:18 +0000 Subject: [PATCH] debug link in staff client browser framework now lets you change the URL git-svn-id: svn://svn.open-ils.org/ILS/trunk@15806 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/chrome/content/util/browser.js | 8 ++++++++ Open-ILS/xul/staff_client/chrome/content/util/browser.xul | 5 +++-- Open-ILS/xul/staff_client/chrome/content/util/rbrowser.xul | 4 +++- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/Open-ILS/xul/staff_client/chrome/content/util/browser.js b/Open-ILS/xul/staff_client/chrome/content/util/browser.js index 14c1c4234..5ffe5ac88 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/browser.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/browser.js @@ -35,6 +35,14 @@ util.browser.prototype = { ['command'], function() { alert('Not Yet Implemented'); } ], + 'cmd_debug' : [ + ['command'], + function() { + var curr_url = obj.get_content().location.href; + var url = window.prompt('Original URL: ' + obj.url + '\nCurrent URL: ' + curr_url + '\nEnter new URL:',curr_url); + if (url) { obj.get_content().location.href = url; } + } + ], 'cmd_print' : [ ['command'], function() { diff --git a/Open-ILS/xul/staff_client/chrome/content/util/browser.xul b/Open-ILS/xul/staff_client/chrome/content/util/browser.xul index d0a842827..d9279927b 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/browser.xul +++ b/Open-ILS/xul/staff_client/chrome/content/util/browser.xul @@ -58,7 +58,7 @@ 'url' : url, 'push_xulG' : push_xulG, 'alt_print' : alt_print, - 'debug_label' : 'debug', + 'debug_label' : 'debug' }; if (typeof window.xulG == 'object' && typeof window.xulG.passthru_content_params == 'object') { p.passthru_content_params = window.xulG.passthru_content_params; @@ -99,6 +99,7 @@ + @@ -110,7 +111,7 @@