Fixed and closed #435: currently active editor tab is now disabled and cannot be clicked.

This commit is contained in:
Dario Solera 2010-01-03 10:03:04 +00:00
parent a86faf35cc
commit 3a4eeaf51e
3 changed files with 11 additions and 2 deletions

View file

@ -16,5 +16,5 @@ using System.Reflection;
// //
// You can specify all the values or you can default the Revision and Build Numbers // You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
[assembly: AssemblyVersion("3.0.1.447")] [assembly: AssemblyVersion("3.0.1.448")]
[assembly: AssemblyFileVersion("3.0.1.447")] [assembly: AssemblyFileVersion("3.0.1.448")]

View file

@ -72,16 +72,24 @@ namespace ScrewTurn.Wiki {
btnWikiMarkup.CssClass = "tabbutton"; btnWikiMarkup.CssClass = "tabbutton";
btnVisual.CssClass = "tabbutton"; btnVisual.CssClass = "tabbutton";
btnPreview.CssClass = "tabbutton"; btnPreview.CssClass = "tabbutton";
btnWikiMarkup.Enabled = true;
btnVisual.Enabled = true;
btnPreview.Enabled = true;
mlvEditor.ActiveViewIndex = index; mlvEditor.ActiveViewIndex = index;
switch(index) { switch(index) {
case 0: case 0:
btnWikiMarkup.CssClass = "tabbuttonactive"; btnWikiMarkup.CssClass = "tabbuttonactive";
btnWikiMarkup.Enabled = false;
break; break;
case 1: case 1:
btnVisual.CssClass = "tabbuttonactive"; btnVisual.CssClass = "tabbuttonactive";
btnVisual.Enabled = false;
break; break;
case 2: case 2:
btnPreview.CssClass = "tabbuttonactive"; btnPreview.CssClass = "tabbuttonactive";
btnPreview.Enabled = false;
break; break;
} }
ViewState["Tab"] = index; ViewState["Tab"] = index;

View file

@ -103,6 +103,7 @@ input.tabbuttonactive {
z-index: 1000; z-index: 1000;
-moz-border-radius: 0px; -moz-border-radius: 0px;
-webkit-border-radius: 0px; -webkit-border-radius: 0px;
cursor: default;
} }
input.tabbuttonactive:hover { input.tabbuttonactive:hover {
background-color: #F0F0F0; background-color: #F0F0F0;