fix force version re-check button
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -7,10 +7,6 @@ export default function () {
|
|||||||
runCheck();
|
runCheck();
|
||||||
}
|
}
|
||||||
|
|
||||||
$('#forceUpdateCheck').on('click', function () {
|
|
||||||
runCheck(1);
|
|
||||||
});
|
|
||||||
|
|
||||||
function runCheck(force = 0)
|
function runCheck(force = 0)
|
||||||
{
|
{
|
||||||
$.ajax({
|
$.ajax({
|
||||||
@@ -18,7 +14,14 @@ export default function () {
|
|||||||
type: "GET",
|
type: "GET",
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
$("#updatecheck").html(data);
|
$("#updatecheck").html(data);
|
||||||
new bootstrap.Popover(document.getElementById('ucheck'));
|
const po = new bootstrap.Popover(document.getElementById('ucheck'));
|
||||||
|
const myPopoverTrigger = document.getElementById('ucheck')
|
||||||
|
myPopoverTrigger.addEventListener('shown.bs.popover', () => {
|
||||||
|
$('#forceUpdateCheck').on('click', function () {
|
||||||
|
runCheck(1);
|
||||||
|
po.hide();
|
||||||
|
});
|
||||||
|
})
|
||||||
},
|
},
|
||||||
error: function (request, status, error) {
|
error: function (request, status, error) {
|
||||||
console.log(request, status, error)
|
console.log(request, status, error)
|
||||||
|
|||||||
@@ -27,6 +27,6 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class='d-flex justify-content-end mt-3'>
|
<div class='d-flex justify-content-end mt-3'>
|
||||||
<i role='button' class='fa-solid fa-arrows-rotate' id='forceUpdateCheck' title='Force re-check of version'></i>
|
<span role='button' id='forceUpdateCheck' title='Force re-check of version'><i class='fa-solid fa-arrows-rotate'></i></span>
|
||||||
</div>
|
</div>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|||||||
Reference in New Issue
Block a user