DEVELOPMENT ENVIRONMENT

~liljamo/felu

ref: a363560cf417bd5df2e871b976026e1b0ed3f8d8 felu/static/felu.js -rw-r--r-- 279 bytes
a363560cJonni Liljamo feat: make user id field a disabled input in admin view 1 year, 24 days ago
                                                                                
1
2
3
4
5
6
7
8
9
document.body.addEventListener('htmx:beforeSwap', function(evt) {
	if (evt.detail.xhr.status === 400) {
		evt.detail.shouldSwap = true;
		evt.detail.isError = false;
	} else if (evt.detail.xhr.status === 401) {
		evt.detail.shouldSwap = true;
		evt.detail.isError = false;
	}
})