diff --git a/AssemblyVersion.cs b/AssemblyVersion.cs index 218855e..f7fdfd4 100644 --- a/AssemblyVersion.cs +++ b/AssemblyVersion.cs @@ -16,5 +16,5 @@ using System.Reflection; // // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("3.0.0.341")] -[assembly: AssemblyFileVersion("3.0.0.341")] +[assembly: AssemblyVersion("3.0.0.342")] +[assembly: AssemblyFileVersion("3.0.0.342")] diff --git a/WebApplication/Edit.aspx b/WebApplication/Edit.aspx index 6e9285d..d7d9bcb 100644 --- a/WebApplication/Edit.aspx +++ b/WebApplication/Edit.aspx @@ -11,13 +11,21 @@ var submitted = false; function __UnloadPage(e) { - if (!submitted) { - e.returnValue = " "; + if (!submitted) { + if (document.getElementById('EditorDiv').getElementsByTagName('textarea')[0].value.length != 0) { + e.returnValue = " "; + } } } function __SetSubmitted() { submitted = true; + } + + function __RequestConfirmIfNotEmpty() { + if (document.getElementById('EditorDiv').getElementsByTagName('textarea')[0].value.length != 0) { + return(__RequestConfirm()); + } } // --> @@ -91,7 +99,7 @@ Display="Dynamic" ControlToValidate="txtTitle" ValidationGroup="nametitle" meta:resourcekey="rfvTitleResource1" /> -
+
@@ -108,7 +116,7 @@
// This code was generated by a tool. -// Runtime Version:2.0.50727.4927 +// Runtime Version:2.0.50727.3074 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -292,6 +292,15 @@ namespace ScrewTurn.Wiki { /// protected global::System.Web.UI.WebControls.RequiredFieldValidator rfvTitle; + /// + /// TemplatesDiv control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl TemplatesDiv; + /// /// btnTemplates control. ///