mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
Avoid jQuery.parseHTML
Change-Id: Iaf5cbe27b8883d6e4c468a3b4dae11438d264894
This commit is contained in:
parent
a1dffa2dd7
commit
b80075a5e4
|
@ -46,13 +46,12 @@
|
||||||
|
|
||||||
$( 'html' ).addClass( 've-activated ve-loading' );
|
$( 'html' ).addClass( 've-activated ve-loading' );
|
||||||
if ( !init.$loading ) {
|
if ( !init.$loading ) {
|
||||||
init.$loading = $(
|
init.$loading = $( '<div>' ).addClass( 've-init-mw-desktopArticleTarget-loading-overlay' ).append(
|
||||||
'<div class="ve-init-mw-desktopArticleTarget-loading-overlay">' +
|
// Can't use OO.ui.ProgressBarWidget yet
|
||||||
'<div class="ve-init-mw-desktopArticleTarget-progress">' +
|
$( '<div>' ).addClass( 've-init-mw-desktopArticleTarget-progress' ).append(
|
||||||
// Stylesheets might not have processed yet, so manually set starting width to 0
|
// Stylesheets might not have processed yet, so manually set starting width to 0
|
||||||
'<div class="ve-init-mw-desktopArticleTarget-progress-bar" style="width: 0;"></div>' +
|
$( '<div>' ).addClass( 've-init-mw-desktopArticleTarget-progress-bar' ).css( 'width', 0 )
|
||||||
'</div>' +
|
)
|
||||||
'</div>'
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
// eslint-disable-next-line no-use-before-define
|
// eslint-disable-next-line no-use-before-define
|
||||||
|
|
Loading…
Reference in a new issue