default to a session cookie instead of setting an explicit timeout, weird timezone...
[freeside.git] / httemplate / elements / customer-table.html
index 25c26b5..12b192e 100644 (file)
@@ -108,6 +108,9 @@ and probably should be cleaned up more before being used by anything else.
       var customer = document.getElementById('customer'+searchrow);
       var customer_select = document.getElementById('cust_select'+searchrow);
 
+      var postPaymentBtn = document.getElementById('btnsubmit');
+      postPaymentBtn.disabled = false;
+
       display_custnum_obj.disabled = false;
       display_custnum_obj.style.backgroundColor = '#ffffff';
       customer.disabled = false;
@@ -331,6 +334,9 @@ and probably should be cleaned up more before being used by anything else.
         custnum_obj.value = 'Multiple'; // or something
         custnum_obj.style.color = '#ff0000';
 
+        var postPaymentBtn = document.getElementById('btnsubmit');
+        postPaymentBtn.disabled = true;
+
         //blank the current list
         customer_select.options.length = 0;
 
@@ -634,6 +640,7 @@ and probably should be cleaned up more before being used by anything else.
 
       var my_cell = document.createElement('TD');
       my_cell.setAttribute('align', '<% $align{ $opt{align}->[$col] || 'l' } %>');
+      my_cell.style.whiteSpace = 'nowrap';
 %     if ($opt{'color'}->[$col]) {
       my_cell.style.color = '<% $opt{color}->[$col] %>';
 %     }
@@ -661,6 +668,7 @@ and probably should be cleaned up more before being used by anything else.
       my_input_button.setAttribute('title', <% mt('Select date') |js_string %>);
       my_input_button.setAttribute('name', '<% $name %>'+thisrownum+'button');
       my_input_button.setAttribute('id',   '<% $name %>'+thisrownum+'button');
+      my_input_button.style.verticalAlign = 'top';
 %     }
       my_input.value = (values && values.<% $field %>) || '';
 %     if ( $opt{onchange}->[$col] ) {
@@ -726,7 +734,7 @@ and probably should be cleaned up more before being used by anything else.
   <TH>Customer</TH>
   <TH>Balance</TH>
 % foreach my $header ( @{$opt{header}} ) {
-    <TH><% $header %></TH>
+    <TH style="white-space: nowrap"><% $header %></TH>
 % }
 </TR>