diff options
author | Simon Rettberg | 2020-12-16 14:11:43 +0100 |
---|---|---|
committer | Simon Rettberg | 2020-12-16 14:11:43 +0100 |
commit | a40362564fa659ffa92d9ad9bd0ca164b592ff55 (patch) | |
tree | 03a27e80b52b46bd13ec1d3781d86f095089900f /modules-available/locations/templates/location-subnets.html | |
parent | [roomplanner] Remove duplicate files (diff) | |
download | slx-admin-a40362564fa659ffa92d9ad9bd0ca164b592ff55.tar.gz slx-admin-a40362564fa659ffa92d9ad9bd0ca164b592ff55.tar.xz slx-admin-a40362564fa659ffa92d9ad9bd0ca164b592ff55.zip |
[locations] Avoid potentially duplicate ids in ajax fragments
Diffstat (limited to 'modules-available/locations/templates/location-subnets.html')
-rw-r--r-- | modules-available/locations/templates/location-subnets.html | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/modules-available/locations/templates/location-subnets.html b/modules-available/locations/templates/location-subnets.html index f88e2908..e954bf10 100644 --- a/modules-available/locations/templates/location-subnets.html +++ b/modules-available/locations/templates/location-subnets.html @@ -142,28 +142,24 @@ <div class="modal-dialog"> <div class="modal-content"> - <form method="post" action="?do=Locations" id="settings-form"> + <form method="post" action="?do=Locations"> <input type="hidden" name="token" value="{{token}}"> <input type="hidden" name="action" value="updateOpeningtimes"> <input type="hidden" name="page" value="details"> - <input type="hidden" name="openingtimes" id="json-openingtimes" value=""> + <input type="hidden" name="openingtimes" value=""> + <input type="hidden" name="locationid" value="{{locationid}}"> <div class="modal-header">{{locationname}}</div> <div class="modal-body"></div> <div class="modal-footer"> - <button type="button" class="btn btn-default" data-dismiss="modal" onclick="$('#openingTimesModal{{locationid}} .modal-body').html('')">{{lang_close}}</button> + <button type="button" class="btn btn-default" data-dismiss="modal">{{lang_close}}</button> <button type="submit" class="btn btn-primary"> <span class="glyphicon glyphicon-floppy-disk"></span> {{lang_save}} </button> </div> - </form> </div> </div> </div> - -<script type="text/javascript"> - $('#settings-form').submit(submitLocationSettings); -</script>
\ No newline at end of file |