java-spring: fix switch to edit mode from editor

This commit is contained in:
Oleg Sinizin
2021-11-01 15:07:27 +03:00
parent b724366c33
commit 3556073f5c

View File

@ -46,7 +46,7 @@
};
var onRequestEditRights = function () {
location.href = location.href.replace(RegExp("mode=view\&?", "i"), "");
location.href = location.href.replace(RegExp("\&?action=view\&?", "i"), "");
};
var onError = function (event) {