From 36d79288342d7ff88c4aae38bc23137e91ecbc8b Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Wed, 22 May 2019 14:59:13 +0100 Subject: [PATCH] Remove BOM in settings-screen.php, keep line space --- lib/settings-screen.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/lib/settings-screen.php b/lib/settings-screen.php index 97a4909..2c7fe46 100644 --- a/lib/settings-screen.php +++ b/lib/settings-screen.php @@ -1,4 +1,4 @@ -" }); + var input = document.getElementById("select"); function selectTheme() { var theme = input.options[input.selectedIndex].innerHTML; if (theme=="default") {theme = "icecoder"}; editor.setOption("theme", theme); } + function changeIndentSize() { var indentSize = document.getElementById("indentSize").value; editor.setOption("indentUnit", indentSize); editor.setOption("tabSize", indentSize); editor.refresh(); } + + function changeLineNumbersToggle() { var lineNumbersSelect = document.getElementById("lineNumbers"); var lineNumbers = lineNumbersSelect.options[lineNumbersSelect.selectedIndex].innerHTML == "yes" ? true : false; editor.setOption("lineNumbers", lineNumbers); editor.refresh(); } + function changeFontSize() { cMCSS = document.styleSheets[2]; cMCSS.rules ? strCSS = 'rules' : strCSS = 'cssRules'; cMCSS[strCSS][0].style['fontSize'] = document.getElementById("fontSize").value; editor.refresh(); } + var changeEnableRegistrationStatus = function(){ document.getElementById('enableRegistration').disabled=!document.getElementById('enableRegistration').disabled; } @@ -396,12 +402,14 @@ var changeBackupsDaysStatus = function(){ var showButton = function() { document.getElementById('updateButton').style.opacity = 1; } + var showHideTabs = function() { cMCSS = document.styleSheets[2]; cMCSS.rules ? strCSS = 'rules' : strCSS = 'cssRules'; cMCSS[strCSS][2].style['border-left-width'] = document.settings.visibleTabs.checked ? '1px' : '0'; cMCSS[strCSS][2].style['margin-left'] = document.settings.visibleTabs.checked ? '-1px' : '0'; } + var validatePasswords = function() { if (document.settings.password.value != 0 && document.settings.password.value.length<8) { top.ICEcoder.message('Please use at least 8 chars in the password'); @@ -413,6 +421,7 @@ var validatePasswords = function() { } } } + tabNames = ['general','style','accounts','security']; var switchTab = function(tab) { for (var i=0; i - \ No newline at end of file +