From: phasefx Date: Thu, 29 Apr 2010 18:45:38 +0000 (+0000) Subject: utility methods for deck class X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8768247246a096a6919449f2e5128cb6ece7d47e;p=contrib%2FConifer.git utility methods for deck class git-svn-id: svn://svn.open-ils.org/ILS/trunk@16349 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- 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);