update form parts
This commit is contained in:
parent
a3a308855c
commit
398e6910bd
2 changed files with 11 additions and 10 deletions
|
|
@ -6,10 +6,15 @@
|
|||
*
|
||||
*/
|
||||
$(document).ready(function() {
|
||||
/*
|
||||
* Hier berechnen wir anhand der Eingabe im Feld alexander-logistic-date-days
|
||||
* ein neues Datum auf basis des Rechnungsdatum (date_invoice)
|
||||
*/
|
||||
initFaelligkeit();
|
||||
|
||||
});
|
||||
|
||||
/*
|
||||
* Hier setzen wir einen Event handler und berechnen anhand der Eingabe im Feld alexander-logistic-date-days
|
||||
* ein neues Datum auf basis des Rechnungsdatum (date_invoice)
|
||||
*/
|
||||
function initFaelligkeit(ajax_event) {
|
||||
$(".alexander-logistic-date-days").change(function(e) {
|
||||
var days = $(this).val();
|
||||
if (days=='') {
|
||||
|
|
@ -56,10 +61,7 @@ $(document).ready(function() {
|
|||
$(this).val('');
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
// erweitere datums eingabe
|
||||
// TTMM
|
||||
|
|
@ -102,5 +104,4 @@ function validateBuchungsDatum(item) {
|
|||
// update field....
|
||||
$(mhd).val(text);
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
itemValue="#{space.item['$UniqueID']}">
|
||||
</f:selectItem>
|
||||
</c:forEach>
|
||||
<f:ajax render="#{formComponents.clientId}" execute="#{formComponents.clientId}" />
|
||||
<f:ajax render="#{formComponents.clientId}" execute="#{formComponents.clientId}" onevent="initFaelligkeit" />
|
||||
</h:selectOneMenu>
|
||||
</ui:fragment>
|
||||
<ui:fragment rendered="#{readonly}">
|
||||
|
|
|
|||
Loading…
Reference in a new issue