Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function () {
- showSuccess();
- document.querySelector('.close').addEventListener("click", function() {
- document.querySelector('.alertWrapper').style.display = "flex";
- });
- document.querySelector('.closeEditSucces').addEventListener("click", function() {
- document.querySelector('.editSuccessWrapper').style.display = "none";
- });
- $("#listaPasm").change(function () {
- var currentRangeId = $("#listaPasm option:selected").val();
- $.getJSON('/admin/loadRegion',{
- rangeId: currentRangeId,
- ajax: 'true'
- },
- function (region) {
- var html = '<option value="">Wybierz region</option>';
- var len = region.length;
- for (var i = 0; i < len; i++) {
- html += '<option value="' + region[i].id + '">' + region[i].name + '</option>';
- }
- html += '</option>';
- $('#listaRegionow').html(html);
- });
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement