mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
Add simple warning to indicate that VE is still in early dev.
Change-Id: Iea2abf9660556eca1d981fbbaab30d75a813e92d
This commit is contained in:
parent
b5befb1d57
commit
9f5a45f138
|
@ -1,5 +1,8 @@
|
|||
<!-- VisualEditor Sandbox -->
|
||||
<div id="es-warning" class="es-warning">This an experimental deployment of the current visual editor codebase. It is still highly unstable and should be expected to break at any time.
|
||||
<a href="#" id="es-warning-dismiss">Dismiss</a></div>
|
||||
<div id="es-docs" style="visibility: hidden">
|
||||
|
||||
<div id="es-docs-label">Example documents:</div>
|
||||
<ul id="es-docs-list" ></ul>
|
||||
</div>
|
||||
|
|
|
@ -251,3 +251,10 @@
|
|||
.es-help-key-or {
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
.es-warning {
|
||||
color: red;
|
||||
text-align: center;
|
||||
margin-bottom: 1em;
|
||||
display: none;
|
||||
}
|
|
@ -699,5 +699,12 @@ $(document).ready( function() {
|
|||
|
||||
$( '#es-docs' ).css( { 'visibility': 'visible' } );
|
||||
$( '#es-base' ).css( { 'visibility': 'visible' } );
|
||||
// Show the warning that this software is experimental
|
||||
// TODO: Use a cookie to remember the warning has been dismissed
|
||||
$( '#es-warning' ).show();
|
||||
$( '#es-warning-dismiss' ).click( function() {
|
||||
$(this).parent().slideUp();
|
||||
return false;
|
||||
} );
|
||||
$( '#es-mode-wikitext' ).click();
|
||||
} );
|
||||
|
|
Loading…
Reference in a new issue