anchor.diff:  
   
       // unlaodWindow Handler, to generate messages that form is left unsaved
  -    function unloadWindow(event) {
  -      event.returnValue = "Oops, it looks like you have forgotten to save your work.";
  +    function unloadWindowWarning(event) {
  +      let dialogText = "Oops, it looks like you have forgotten to save your work."
  +      event.returnValue = dialogText;
  +      return dialogText;
       };
   
   
  
positive.code:       span="Error occured"
  
  mixin saveButton
    button.btn.btn-large.btn-primary#saveButton(type = "button" onclick ="window.onbeforeunload=null; disableUnchanged();document.getElementById('input').submit();") Save
  
  mixin doublettesButton
    if articleReferences.count >= 1
  
negative.code:       });
        $("#saveButton").prop("disabled",!modified);
        if (modified) {
          $(window).on("beforeunload",unloadWindowWarning);
        } else {
          $(window).off("beforeunload",unloadWindowWarning);
        }
  
      }
  