Add simple warning to indicate that VE is still in early dev.

Change-Id: Iea2abf9660556eca1d981fbbaab30d75a813e92d
This commit is contained in:
Erik Moeller 2012-04-11 18:08:11 -07:00 committed by Trevor Parscal
parent b5befb1d57
commit 9f5a45f138
3 changed files with 17 additions and 0 deletions

View file

@ -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>

View file

@ -251,3 +251,10 @@
.es-help-key-or {
color: #999999;
}
.es-warning {
color: red;
text-align: center;
margin-bottom: 1em;
display: none;
}

View file

@ -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();
} );