More correct - we want the form element value here
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 13 May 2010 16:59:17 +0000 (10:59 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 13 May 2010 17:08:10 +0000 (11:08 -0600)
imp/js/compose-base.js

index 7ec10f2..5ade90a 100644 (file)
@@ -33,11 +33,11 @@ var IMP_Compose_Base = {
             break;
 
         case 'bottom':
-            pos = input.length;
+            pos = $F(input).length;
             break;
 
         case 'sig':
-            pos = input.replace(/\r\n/g, '\n').lastIndexOf(sig) - 1;
+            pos = $F(input).replace(/\r\n/g, '\n').lastIndexOf(sig) - 1;
             break;
 
         default: