Revize fb86dc6a
Přidáno uživatelem Jan Čarnogurský před téměř 4 roky(ů)
src/main/webapp/js/assemblyScripts.js | ||
---|---|---|
279 | 279 |
|
280 | 280 |
document.querySelectorAll('.show-spinner').forEach(button => { |
281 | 281 |
button.addEventListener('click', showSpinner); |
282 |
}) |
|
282 |
}); |
|
283 |
|
|
284 |
// check for form response to hide spinner |
|
285 |
$('#assembly-form').on('submit',function(e){ |
|
286 |
|
|
287 |
// csfr protection |
|
288 |
var token = $("meta[name='_csrf']").attr("content"); |
|
289 |
|
|
290 |
$.ajax({ |
|
291 |
url: $('#form').attr('action'), |
|
292 |
headers: {"X-CSRF-TOKEN": token}, |
|
293 |
type: 'POST', |
|
294 |
contentType: "application/json; charset=utf-8", |
|
295 |
data : $('#assembly-form').serialize(), |
|
296 |
complete: function () { |
|
297 |
hideSpinner(); |
|
298 |
} |
|
299 |
}); |
|
300 |
}); |
|
283 | 301 |
} |
284 | 302 |
|
285 | 303 |
/** |
Také k dispozici: Unified diff
re #8175 - hide spinner after pdf/excel generation