From 9f5a45f1385eafc3dc05d10bf15a9c19c509f33e Mon Sep 17 00:00:00 2001 From: Erik Moeller Date: Wed, 11 Apr 2012 18:08:11 -0700 Subject: [PATCH] Add simple warning to indicate that VE is still in early dev. Change-Id: Iea2abf9660556eca1d981fbbaab30d75a813e92d --- modules/sandbox/base.php | 3 +++ modules/sandbox/sandbox.css | 7 +++++++ modules/sandbox/sandbox.js | 7 +++++++ 3 files changed, 17 insertions(+) diff --git a/modules/sandbox/base.php b/modules/sandbox/base.php index d3676ff573..2f8b19ce19 100644 --- a/modules/sandbox/base.php +++ b/modules/sandbox/base.php @@ -1,5 +1,8 @@ +
This an experimental deployment of the current visual editor codebase. It is still highly unstable and should be expected to break at any time. +Dismiss
diff --git a/modules/sandbox/sandbox.css b/modules/sandbox/sandbox.css index 61922b4ca7..beafd80bc4 100644 --- a/modules/sandbox/sandbox.css +++ b/modules/sandbox/sandbox.css @@ -251,3 +251,10 @@ .es-help-key-or { color: #999999; } + +.es-warning { + color: red; + text-align: center; + margin-bottom: 1em; + display: none; +} \ No newline at end of file diff --git a/modules/sandbox/sandbox.js b/modules/sandbox/sandbox.js index ba0aff5fc6..7c3dc90a72 100644 --- a/modules/sandbox/sandbox.js +++ b/modules/sandbox/sandbox.js @@ -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(); } );