* Ignore onlybody page.

This commit is contained in:
caoyanyi
2023-03-13 09:54:44 +08:00
parent 855b1a4d76
commit 709d489a0b
+5 -1
View File
@@ -8,6 +8,10 @@
*/
function handleSaveFormDraft()
{
/* Ignore onlybody page. */
var onlybody = window.location.search.substr(1).match(new RegExp("(^|&)onlybody=([^&]*)(&|$)", "i"));
if(onlybody && onlybody[2] == 'yes') return;
if(config.currentMethod === 'login' || config.currentModule === 'repo' || config.currentMethod.indexOf('edit') != -1 || config.currentMethod.indexOf('import') != -1) return;
setTimeout(function()
{
@@ -124,7 +128,7 @@
}).show();
}
form.on('input', function()
{
{
storeFormArr()
}).on('change', function()
{