From d6051cda18e84cf985923f10640d02249cb693a8 Mon Sep 17 00:00:00 2001 From: miker Date: Wed, 2 Jun 2010 17:42:40 +0000 Subject: [PATCH] use dojo.query instead of getElementsByTagName ... IE-- git-svn-id: svn://svn.open-ils.org/ILS/trunk@16559 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/dojo/fieldmapper/IDL.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Open-ILS/web/js/dojo/fieldmapper/IDL.js b/Open-ILS/web/js/dojo/fieldmapper/IDL.js index 17fcdffb26..95f2687d64 100644 --- a/Open-ILS/web/js/dojo/fieldmapper/IDL.js +++ b/Open-ILS/web/js/dojo/fieldmapper/IDL.js @@ -55,14 +55,14 @@ if(!dojo._hasResource["fieldmapper.IDL"]) { }, _parse : function(xmlNode) { - var classes = xmlNode.getElementsByTagName('class'); + var classes = dojo.query('class',xmlNode); if (!fieldmapper.IDL || !fieldmapper.IDL.fmclasses) fieldmapper.IDL.fmclasses = {}; for(var i = 0; i < classes.length; i++) { var node = classes[i]; var id = node.getAttribute('id'); - var fields = node.getElementsByTagName('fields')[0]; + var fields = dojo.query('fields',node)[0]; window.fmclasses[id] = []; var fieldData = this._parseFields(node, id); @@ -84,13 +84,13 @@ if(!dojo._hasResource["fieldmapper.IDL"]) { var valid = fieldmapper._getAttributeNS(node,this.NS_OBJ, 'validate'); if (valid) obj.validate = new RegExp( valid.replace(/\\/g, '\\\\') ); - var permacrud = node.getElementsByTagName('permacrud')[0]; + var permacrud = dojo.query('permacrud',node)[0]; if(permacrud) { var actions = ['create', 'retrieve', 'update', 'delete']; obj.permacrud = {}; for(var idx in actions) { var action = actions[idx]; - var pnode = permacrud.getElementsByTagName(action)[0]; + var pnode = dojo.query(action,permacrud)[0]; if(pnode) { var permString = pnode.getAttribute('permission'); var permList = null; @@ -122,11 +122,11 @@ if(!dojo._hasResource["fieldmapper.IDL"]) { var data = []; var map = {}; - var fields = node.getElementsByTagName('fields')[0]; - fields = fields.getElementsByTagName('field'); + var fields = dojo.query('fields',node)[0]; + fields = dojo.query('field',fields); - var links = node.getElementsByTagName('links')[0]; - if( links ) links = links.getElementsByTagName('link'); + var links = dojo.query('links',node)[0]; + if( links ) links = dojo.query('link',links); else links = []; -- 2.11.0