Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created December 9, 2016 10:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/c716e99cc4cc2d090b575a839f6d367d to your computer and use it in GitHub Desktop.
Save bjoerntx/c716e99cc4cc2d090b575a839f6d367d to your computer and use it in GitHub Desktop.
var dirtyFlag = false;
TXTextControl.addEventListener("textControlChanged", function (e) {
dirtyFlag = true;
$("#btnSave").prop('disabled', false);
});
function SaveDocument() {
SaveToController('@Model.Filename', false);
$("#btnSave").prop('disabled', true);
dirtyFlag = false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment