From a799269afe0ba1b0d90db84ac95192bd3595be5c Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Mon, 10 May 2010 11:52:09 -0600 Subject: [PATCH] Use readAttribute(), not getAttribute() --- imp/js/DimpBase.js | 2 +- imp/js/compose-dimp.js | 2 +- imp/js/fullmessage-dimp.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/imp/js/DimpBase.js b/imp/js/DimpBase.js index 58ef96fc3..3cca5fdb6 100644 --- a/imp/js/DimpBase.js +++ b/imp/js/DimpBase.js @@ -2087,7 +2087,7 @@ var DimpBase = { e.stop(); return; } else if (elt.hasClassName('printAtc')) { - DimpCore.popupWindow(DimpCore.addURLParam(DIMP.conf.URI_VIEW, { uid: this.pp.imapuid, mailbox: this.pp.view, actionID: 'print_attach', id: elt.getAttribute('mimeid') }, true), this.pp.imapuid + '|' + this.pp.view + '|print', IMP.printWindow); + DimpCore.popupWindow(DimpCore.addURLParam(DIMP.conf.URI_VIEW, { uid: this.pp.imapuid, mailbox: this.pp.view, actionID: 'print_attach', id: elt.readAttribute('mimeid') }, true), this.pp.imapuid + '|' + this.pp.view + '|print', IMP.printWindow); e.stop(); return; } diff --git a/imp/js/compose-dimp.js b/imp/js/compose-dimp.js index 77344b3ee..de1d01ead 100644 --- a/imp/js/compose-dimp.js +++ b/imp/js/compose-dimp.js @@ -669,7 +669,7 @@ var DimpCompose = { /* Logic: Determine the size of a given textarea row, divide that * size by the available height, round down to the lowest integer * row, and resize the textarea. */ - rows = parseInt(mah / (msg.clientHeight / msg.getAttribute('rows')), 10); + rows = parseInt(mah / (msg.clientHeight / msg.readAttribute('rows')), 10); if (!isNaN(rows)) { msg.writeAttribute({ rows: rows, disabled: false }); if (de.scrollHeight - de.clientHeight) { diff --git a/imp/js/fullmessage-dimp.js b/imp/js/fullmessage-dimp.js index 6e3083fee..24e878534 100644 --- a/imp/js/fullmessage-dimp.js +++ b/imp/js/fullmessage-dimp.js @@ -152,7 +152,7 @@ var DimpFullmessage = { default: if (elt.hasClassName('printAtc')) { - DimpCore.popupWindow(DimpCore.addURLParam(DIMP.conf.URI_VIEW, { uid: this.uid, mailbox: this.mailbox, actionID: 'print_attach', id: elt.getAttribute('mimeid') }, true), this.uid + '|' + this.mailbox + '|print', IMP.printWindow); + DimpCore.popupWindow(DimpCore.addURLParam(DIMP.conf.URI_VIEW, { uid: this.uid, mailbox: this.mailbox, actionID: 'print_attach', id: elt.readAttribute('mimeid') }, true), this.uid + '|' + this.mailbox + '|print', IMP.printWindow); e.stop(); return; } -- 2.11.0