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() {
|
$(document).ready(function() {
|
||||||
/*
|
initFaelligkeit();
|
||||||
* Hier berechnen wir anhand der Eingabe im Feld alexander-logistic-date-days
|
|
||||||
* ein neues Datum auf basis des Rechnungsdatum (date_invoice)
|
});
|
||||||
*/
|
|
||||||
|
/*
|
||||||
|
* 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) {
|
$(".alexander-logistic-date-days").change(function(e) {
|
||||||
var days = $(this).val();
|
var days = $(this).val();
|
||||||
if (days=='') {
|
if (days=='') {
|
||||||
|
|
@ -56,10 +61,7 @@ $(document).ready(function() {
|
||||||
$(this).val('');
|
$(this).val('');
|
||||||
|
|
||||||
});
|
});
|
||||||
|
}
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// erweitere datums eingabe
|
// erweitere datums eingabe
|
||||||
// TTMM
|
// TTMM
|
||||||
|
|
@ -102,5 +104,4 @@ function validateBuchungsDatum(item) {
|
||||||
// update field....
|
// update field....
|
||||||
$(mhd).val(text);
|
$(mhd).val(text);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
itemValue="#{space.item['$UniqueID']}">
|
itemValue="#{space.item['$UniqueID']}">
|
||||||
</f:selectItem>
|
</f:selectItem>
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
<f:ajax render="#{formComponents.clientId}" execute="#{formComponents.clientId}" />
|
<f:ajax render="#{formComponents.clientId}" execute="#{formComponents.clientId}" onevent="initFaelligkeit" />
|
||||||
</h:selectOneMenu>
|
</h:selectOneMenu>
|
||||||
</ui:fragment>
|
</ui:fragment>
|
||||||
<ui:fragment rendered="#{readonly}">
|
<ui:fragment rendered="#{readonly}">
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue