Fixed and closed #435: currently active editor tab is now disabled and cannot be clicked.
This commit is contained in:
parent
a86faf35cc
commit
3a4eeaf51e
3 changed files with 11 additions and 2 deletions
|
@ -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")]
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue