Kreditoren- und Debitorenbuchung: Erneuern per JS bei Wechsel des Beleg-Projekts
authorBernd Bleßmann <bernd@kivitendo-premium.de>
Wed, 31 Aug 2016 12:27:39 +0000 (14:27 +0200)
committerBernd Bleßmann <bernd@kivitendo-premium.de>
Wed, 31 Aug 2016 12:27:39 +0000 (14:27 +0200)
behebt #207 (redmine)

templates/webpages/ap/form_header.html
templates/webpages/ar/form_header.html

index af3b7e8..07e3188 100644 (file)
               <tr>
                 <th align="right" nowrap>[% 'Project Number' | $T8 %]</th>
                 <td>
-                  [% L.select_tag('globalproject_id', ALL_PROJECTS, with_empty = 1, default = globalproject_id, value_key = 'id', title_key = 'projectnumber') %]
+                  [% L.select_tag('globalproject_id', ALL_PROJECTS, with_empty = 1, default = globalproject_id, value_key = 'id', title_key = 'projectnumber', onChange = "document.getElementById('update_button').click();") %]
                 </td>
               </tr>
             </table>
index c779a0d..285ee67 100644 (file)
               </tr>
               <tr>
                 <th align=right nowrap>[% 'Project Number' | $T8 %]</th>
-                <td>[% L.select_tag('globalproject_id', ALL_PROJECTS, title_key = 'projectnumber', default = globalproject_id, with_empty = 1) %]</td>
+                <td>[% L.select_tag('globalproject_id', ALL_PROJECTS, title_key = 'projectnumber', default = globalproject_id, with_empty = 1, onChange = "document.getElementById('update_button').click();") %]</td>
               </tr>
      </table>
           </td>