switching from filling to editing

This commit is contained in:
Sergey Linnik
2024-04-05 12:26:23 +03:00
parent c55142bd73
commit fa303e9bf2
9 changed files with 9 additions and 8 deletions

View File

@ -86,7 +86,7 @@
// the user is trying to switch the document from the viewing into the editing mode
var onRequestEditRights = function () {
location.href = location.href.replace(RegExp("editorsMode=view\&?", "i"), "");
location.href = location.href.replace(RegExp("editorsMode=\\w+\&?", "i"), "") + "&editorsMode=edit";
};
// an error or some other specific event occurs