[open-ils-commits] r16349 - trunk/Open-ILS/xul/staff_client/chrome/content/util (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Apr 29 14:45:43 EDT 2010


Author: phasefx
Date: 2010-04-29 14:45:38 -0400 (Thu, 29 Apr 2010)
New Revision: 16349

Modified:
   trunk/Open-ILS/xul/staff_client/chrome/content/util/deck.js
Log:
utility methods for deck class

Modified: trunk/Open-ILS/xul/staff_client/chrome/content/util/deck.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/util/deck.js	2010-04-29 18:45:37 UTC (rev 16348)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/util/deck.js	2010-04-29 18:45:38 UTC (rev 16349)
@@ -113,6 +113,14 @@
 
     /* 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);



More information about the open-ils-commits mailing list