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
|
@ -72,16 +72,24 @@ namespace ScrewTurn.Wiki {
|
|||
btnWikiMarkup.CssClass = "tabbutton";
|
||||
btnVisual.CssClass = "tabbutton";
|
||||
btnPreview.CssClass = "tabbutton";
|
||||
|
||||
btnWikiMarkup.Enabled = true;
|
||||
btnVisual.Enabled = true;
|
||||
btnPreview.Enabled = true;
|
||||
|
||||
mlvEditor.ActiveViewIndex = index;
|
||||
switch(index) {
|
||||
case 0:
|
||||
btnWikiMarkup.CssClass = "tabbuttonactive";
|
||||
btnWikiMarkup.Enabled = false;
|
||||
break;
|
||||
case 1:
|
||||
btnVisual.CssClass = "tabbuttonactive";
|
||||
btnVisual.Enabled = false;
|
||||
break;
|
||||
case 2:
|
||||
btnPreview.CssClass = "tabbuttonactive";
|
||||
btnPreview.Enabled = false;
|
||||
break;
|
||||
}
|
||||
ViewState["Tab"] = index;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue