Use readAttribute(), not getAttribute()
authorMichael M Slusarz <slusarz@curecanti.org>
Mon, 10 May 2010 17:52:09 +0000 (11:52 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Mon, 10 May 2010 17:52:09 +0000 (11:52 -0600)
imp/js/DimpBase.js
imp/js/compose-dimp.js
imp/js/fullmessage-dimp.js

index 58ef96f..3cca5fd 100644 (file)
@@ -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;
                 }
index 77344b3..de1d01e 100644 (file)
@@ -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) {
index 6e3083f..24e8785 100644 (file)
@@ -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;
                 }