0001-manager-add-opacity-transition-when-refresh-is-in-pr.patch
src/authentic2/manager/static/authentic2/manager/css/style.css | ||
---|---|---|
267 | 267 |
.ui-dialog-content span.select2-container { |
268 | 268 |
width: 100% !important; |
269 | 269 |
} |
270 | ||
271 |
.content table { |
|
272 |
transition: opacity 200ms linear; |
|
273 |
} |
|
274 | ||
275 |
.refreshing .content table { |
|
276 |
opacity: 0.5; |
|
277 |
} |
src/authentic2/manager/static/authentic2/manager/js/manager.js | ||
---|---|---|
75 | 75 |
window.history.pushState(state, window.document.tile, href); |
76 | 76 |
} |
77 | 77 |
url = window.location.href; |
78 |
$('body').addClass('refreshing'); |
|
78 | 79 |
$.get(url, function (response_text) { |
79 | 80 |
var $response = $(response_text); |
80 | 81 |
var $content = $response.find('#content .content'); |
... | ... | |
88 | 89 |
$('.django-select2').djangoSelect2(); |
89 | 90 |
} |
90 | 91 |
$(window.document).trigger('gadjo:content-update'); |
92 |
}).always(function() { |
|
93 |
$('body').removeClass('refreshing'); |
|
91 | 94 |
}); |
92 | 95 |
} |
93 | 96 |
window.update_content = update_content; |
94 |
- |