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" /> -