From 8768247246a096a6919449f2e5128cb6ece7d47e Mon Sep 17 00:00:00 2001
From: phasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Date: Thu, 29 Apr 2010 18:45:38 +0000
Subject: [PATCH] utility methods for deck class

git-svn-id: svn://svn.open-ils.org/ILS/trunk@16349 dcc99617-32d9-48b4-a31d-7c20da2025e4
---
 Open-ILS/xul/staff_client/chrome/content/util/deck.js | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/Open-ILS/xul/staff_client/chrome/content/util/deck.js b/Open-ILS/xul/staff_client/chrome/content/util/deck.js
index e7427baf58..d0a8a215f8 100644
--- a/Open-ILS/xul/staff_client/chrome/content/util/deck.js
+++ b/Open-ILS/xul/staff_client/chrome/content/util/deck.js
@@ -113,6 +113,14 @@ util.deck.prototype = {
 
     /* FIXME -- consider all the browser stuff broken.. very weird behavior in new_browser */
 
+    'get_iframe' : function() {
+        return this.node.childNodes[ this.node.selectedIndex ];
+    },
+
+    'get_contentWindow' : function() {
+        return get_contentWindow( this.get_iframe() );
+    },
+
     'set_browser' : function (url,params,content_params) {
         this.error.sdump('D_TRACE','util.deck.set_browser: url = ' + url);
         var idx = this.find_index(url);
-- 
2.11.0