git.schokokeks.org
Repositories
Help
Report an Issue
bibweb.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
3a6b9e8
Branches
Tags
master
bibweb.git
assets
gitterbox.js
Erste Version, die über die API speichert
Bernd Wurst
commited
3a6b9e8
at 2020-06-06 20:24:13
gitterbox.js
Blame
History
Raw
function gitterbox_click( event ) { $('#btn-gitterbox').removeClass('btn-default'); $('#btn-gitterbox').addClass('btn-primary'); $('#btn-anhaenger').removeClass('btn-primary'); $('#btn-anhaenger').addClass('btn-default'); $('#modal-gitterbox').modal("show"); $('#details-anhaenger').hide(); $('#lieferart').val('gitterbox'); $('#details-gitterbox').show(); $('#btn-submit').show(); event.preventDefault(); } function anhaenger_click( event ) { $('#btn-anhaenger').removeClass('btn-default'); $('#btn-anhaenger').addClass('btn-primary'); $('#btn-gitterbox').removeClass('btn-primary'); $('#btn-gitterbox').addClass('btn-default'); //$('#modal-kennzeichen').modal("show"); $('#details-anhaenger').show(); $('#details-gitterbox').hide(); $('#lieferart').val('anhaenger'); $('#btn-submit').show(); $('#kennz').get(0).focus(); //$('#kennz-modal').focus(); event.preventDefault(); } $(function () { $('#details-gitterbox').hide(); $('#details-anhaenger').hide(); $('#btn-submit').hide(); $('#btn-gitterbox').click(gitterbox_click); $('#gbcount').click(gitterbox_click); $('#btn-anhaenger').click(anhaenger_click); $('.btn-gbcount').each(function () { $(this).click(function () { $('#gbcount').val( $(this).text() ); $('#modal-gitterbox').modal("hide"); $('form').submit(); }); }); $('#btn-kennzeichen-ok').click(function () { $('#kennz').val($('#kennz-modal').text()); $('#modal-kennzeichen').modal("hide"); $('form').submit(); }); });