summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/ViewSource.page
diff options
context:
space:
mode:
Diffstat (limited to 'demos/quickstart/protected/pages/ViewSource.page')
-rw-r--r--demos/quickstart/protected/pages/ViewSource.page5
1 files changed, 4 insertions, 1 deletions
diff --git a/demos/quickstart/protected/pages/ViewSource.page b/demos/quickstart/protected/pages/ViewSource.page
index 8f1239b3..46b7c674 100644
--- a/demos/quickstart/protected/pages/ViewSource.page
+++ b/demos/quickstart/protected/pages/ViewSource.page
@@ -6,6 +6,7 @@
</com:THead>
<body>
+<com:TForm>
<div id="sourceList">
<table border="0">
<com:TRepeater ID="SourceList">
@@ -17,12 +18,14 @@
</prop:ItemTemplate>
</com:TRepeater>
</table>
+<com:TCheckBox ID="showNumbers" Text="Show Line Numbers" Checked="true" AutoPostBack="true" />
</div>
<div id="sourceView">
<h3 style="text-align:center"><%= $this->FilePath %></h3>
-<com:TTextHighlighter ID="Highlighter" ShowLineNumbers="true" CssClass="source">
+<com:TTextHighlighter ID="Highlighter" ShowLineNumbers=<%= $this->showNumbers->Checked %> CssClass="source">
<com:TLiteral ID="SourceView" />
</com:TTextHighlighter>
</div>
+</com:TForm>
</body>
</html> \ No newline at end of file