Overview
Comment:Remplir automatiquement le montant pour la cotisation en premier dans le select, signalé par @François
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | stable
Files: files | file ages | folders
SHA1: 1537e3d4143f9ee81ed6ac79c410136199c3b309
User & Date: bohwaz on 2018-04-28 22:03:51
Other Links: manifest | tags
References
2020-12-08
23:25 Wiki page "Changelog/0.9" artifact: b9c916b4d1 user: bohwaz
Context
2018-04-28
22:07
Forcer l'installation des plugins système après restauration check-in: e3268e5084 user: bohwaz tags: trunk, stable
22:03
Remplir automatiquement le montant pour la cotisation en premier dans le select, signalé par @François check-in: 1537e3d414 user: bohwaz tags: trunk, stable
20:49
La structure est légèrement différente pour les sous-comptes check-in: d9b481884b user: bohwaz tags: trunk, stable
Changes

Modified src/templates/admin/membres/cotisations/ajout.tpl from [3b5c104938] to [3866bd8690].

116
117
118
119
120
121
122


123

124
125
126
127
128
129
130
131
132
133
134

135

136
137
138
139
140




141
142
143
144
145

    changeMoyenPaiement();
    cocherAEncaisser();

    $('#f_moyen_paiement').onchange = changeMoyenPaiement;
    $('#f_a_encaisser').onchange = cocherAEncaisser;



    $('#f_id_cotisation').onchange = function () {

        if (this.options[this.selectedIndex].getAttribute('data-compta'))
        {
            $('#f_montant').value = this.options[this.selectedIndex].getAttribute('data-amount'); 
            g.toggle('.f_compta', true);
            changeMoyenPaiement();
            cocherAEncaisser();
        }
        else
        {
            g.toggle('.f_compta', false);
        }

    };


    if (!$('#f_id_cotisation').options[$('#f_id_cotisation').selectedIndex].getAttribute('data-compta'))
    {
        g.toggle('.f_compta', false);
    }




} ());
{/literal}
</script>

{include file="admin/_foot.tpl"}







>
>
|
>
|

|








>
|
>





>
>
>
>





116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154

    changeMoyenPaiement();
    cocherAEncaisser();

    $('#f_moyen_paiement').onchange = changeMoyenPaiement;
    $('#f_a_encaisser').onchange = cocherAEncaisser;

    function changeCotisation()
    {
        var s = $('#f_id_cotisation');

        if (s.options[s.selectedIndex].getAttribute('data-compta'))
        {
            $('#f_montant').value = s.options[s.selectedIndex].getAttribute('data-amount'); 
            g.toggle('.f_compta', true);
            changeMoyenPaiement();
            cocherAEncaisser();
        }
        else
        {
            g.toggle('.f_compta', false);
        }
    }

    $('#f_id_cotisation').onchange = changeCotisation;

    if (!$('#f_id_cotisation').options[$('#f_id_cotisation').selectedIndex].getAttribute('data-compta'))
    {
        g.toggle('.f_compta', false);
    }
    else
    {
        changeCotisation();
    }
} ());
{/literal}
</script>

{include file="admin/_foot.tpl"}