# HG changeset patch # User Dan # Date 1202120360 18000 # Node ID a3a9e463c62f3320a8d5df2050829d06812d9325 # Parent 7aa9370830f863c60e20a16b288388fa8d9d691e Cosmetic improvements to page editor; added demo mode checks in Admin:LangManager diff -r 7aa9370830f8 -r a3a9e463c62f includes/clientside/static/editor.js --- a/includes/clientside/static/editor.js Sat Feb 02 23:14:32 2008 -0500 +++ b/includes/clientside/static/editor.js Mon Feb 04 05:19:20 2008 -0500 @@ -110,6 +110,8 @@ // var heading = document.createElement('h3'); + heading.style.cssFloat = 'left'; + heading.style.styleFloat = 'left'; heading.appendChild(document.createTextNode($lang.get('editor_msg_editor_heading'))); // Plaintext/wikitext toggler @@ -120,6 +122,9 @@ { var toggler = document.createElement('p'); toggler.style.marginLeft = '0'; + toggler.style.cssFloat = 'right'; + toggler.style.styleFloat = 'right'; + toggler.style.paddingTop = '4pt'; var span_wiki = document.createElement('span'); var span_mce = document.createElement('span'); @@ -162,6 +167,7 @@ // Form (to allow submits from MCE to trigger a real save) var form = document.createElement('form'); form.action = 'javascript:void(0);'; + form.style.clear = 'both'; form.onsubmit = function() { ajaxEditorSave(); @@ -174,10 +180,12 @@ preview_anchor.id = 'ajax_preview'; var preview_container = document.createElement('div'); preview_container.id = 'enano_editor_preview'; + preview_container.style.clear = 'both'; // Textarea containing the content var ta_wrapper = document.createElement('div'); ta_wrapper.style.margin = '10px 0'; + ta_wrapper.style.clear = 'both'; var textarea = document.createElement('textarea'); textarea.value = content; textarea._edTimestamp = timestamp; diff -r 7aa9370830f8 -r a3a9e463c62f language/english/admin.json --- a/language/english/admin.json Sat Feb 02 23:14:32 2008 -0500 +++ b/language/english/admin.json Mon Feb 04 05:19:20 2008 -0500 @@ -453,6 +453,7 @@ col_lang_name: 'Language name (native)', col_lang_name_eng: 'Language name (English)', btn_install_language: 'Install', + err_lang_install_demo: 'Modifying, installing, and uninstalling languages is disabled in the demo for security reasons.', msg_lang_install_success: 'The language pack %lang_name% has been installed.', // Editor portal diff -r 7aa9370830f8 -r a3a9e463c62f plugins/admin/LangManager.php --- a/plugins/admin/LangManager.php Sat Feb 02 23:14:32 2008 -0500 +++ b/plugins/admin/LangManager.php Mon Feb 04 05:19:20 2008 -0500 @@ -56,6 +56,13 @@ switch ( $action ) { case 'install_language': + + if ( defined('ENANO_DEMO_MODE') ) + { + echo '