mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
fix icon flickering issue
This commit is contained in:
parent
9131ff3a62
commit
20e35d0b41
@ -356,7 +356,7 @@ define([
|
||||
$container.append($form);
|
||||
isEdit = false;
|
||||
called = false;
|
||||
setTimeout( () => Lucide.createIcons(), 0);
|
||||
Lucide.createIcons();
|
||||
});
|
||||
};
|
||||
resetUI();
|
||||
@ -996,7 +996,6 @@ define([
|
||||
};
|
||||
|
||||
UI.passwordInput = function (opts, displayEye) {
|
||||
setTimeout( () => Lucide.createIcons(), 0);
|
||||
opts = opts || {};
|
||||
var attributes = merge({
|
||||
type: 'password',
|
||||
@ -1046,6 +1045,7 @@ define([
|
||||
});
|
||||
}
|
||||
|
||||
Lucide.createIcons();
|
||||
return h('span.cp-password-container', [
|
||||
input,
|
||||
eye
|
||||
|
||||
@ -2961,7 +2961,6 @@ define([
|
||||
icon: UI.getFileIcon({type: type})
|
||||
});
|
||||
var redraw = function (index) {
|
||||
setTimeout( ()=> Lucide.createIcons());
|
||||
if (index < 0) { i = 0; }
|
||||
else if (index > allData.length - 1) { return; }
|
||||
else { i = index; }
|
||||
@ -3013,6 +3012,7 @@ define([
|
||||
$('.cp-creation-template-container').find('[tabindex]:not([tabindex="-1"])').filter(':visible').first().focus();
|
||||
});
|
||||
if (i < TEMPLATES_DISPLAYED) { $(left).addClass('hidden'); }
|
||||
Lucide.createIcons();
|
||||
};
|
||||
if (fromFileData) {
|
||||
var todo = function (thumbnail) {
|
||||
|
||||
@ -400,7 +400,7 @@ define([
|
||||
common.setHash(active);
|
||||
|
||||
setTimeout(() => { sidebar.openCategory(active); });
|
||||
setTimeout( () => Lucide.createIcons());
|
||||
Lucide.createIcons();
|
||||
$leftside.append(container);
|
||||
};
|
||||
|
||||
|
||||
@ -249,7 +249,6 @@ MessengerUI, Messages, Pages, PadTypes, Lucide, Icons) {
|
||||
var $spansmall = $('<span>').append($editIcon, $editCount, $separator, $viewIcon, $viewCount);
|
||||
$userButtons.find('.cp-toolbar-userlist-button').empty().append($spansmall);
|
||||
|
||||
setTimeout( () => Lucide.createIcons(), 0);
|
||||
if (!online || toolbar.isDeleted) { return; }
|
||||
|
||||
if (metadataMgr.isDegraded() === true) { return; }
|
||||
@ -432,6 +431,7 @@ MessengerUI, Messages, Pages, PadTypes, Lucide, Icons) {
|
||||
viewText += numberOfViewUsers + ' ' + viewerText + '</div>';
|
||||
$editUsers.append(viewText);
|
||||
}
|
||||
Lucide.createIcons();
|
||||
};
|
||||
|
||||
var initUserList = function (toolbar, config) {
|
||||
|
||||
@ -185,7 +185,6 @@ define([
|
||||
var createEditModal = function (framework, kanban) {
|
||||
if (framework.isReadOnly()) { return; }
|
||||
if (editModal) { return editModal; }
|
||||
setTimeout( () => Lucide.createIcons(), 0);
|
||||
|
||||
var dataObject = {};
|
||||
var isBoard, id;
|
||||
@ -521,6 +520,7 @@ define([
|
||||
});
|
||||
});
|
||||
|
||||
Lucide.createIcons();
|
||||
return {
|
||||
modal: modal,
|
||||
setId: setId,
|
||||
@ -1185,7 +1185,7 @@ define([
|
||||
$tag.attr('aria-pressed', 'true');
|
||||
}
|
||||
commitTags();
|
||||
setTimeout( () => Lucide.createIcons(), 0);
|
||||
Lucide.createIcons();
|
||||
}).keydown(function (e) {
|
||||
if (e.which === 13 || e.which === 32) {
|
||||
$tag.click();
|
||||
|
||||
@ -214,7 +214,6 @@ define([
|
||||
|
||||
var mkSettingsMenu = function(framework) {
|
||||
var getSettings = function () {
|
||||
setTimeout( () => Lucide.createIcons(), 0);
|
||||
var $d = $(h('div.cp-pad-settings-dialog'));
|
||||
var common = framework._.sfCommon;
|
||||
var metadataMgr = common.getMetadataMgr();
|
||||
@ -339,6 +338,7 @@ define([
|
||||
$comments[0],
|
||||
]);
|
||||
|
||||
Lucide.createIcons();
|
||||
return $d[0];
|
||||
};
|
||||
|
||||
@ -647,7 +647,6 @@ define([
|
||||
};
|
||||
|
||||
var andThen2 = function(editor, Ckeditor, framework) {
|
||||
setTimeout(() => Lucide.createIcons());
|
||||
var mediaTagMap = {};
|
||||
var $contentContainer = $('#cke_1_contents');
|
||||
var $html = $('html');
|
||||
@ -1330,6 +1329,7 @@ define([
|
||||
}
|
||||
});
|
||||
|
||||
Lucide.createIcons();
|
||||
framework.start();
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user