mirror of
https://github.com/typecho/typecho.git
synced 2025-03-20 01:49:40 +01:00
修正离开检测的问题
This commit is contained in:
parent
b96203254d
commit
ec608a159a
@ -117,11 +117,11 @@ $(document).ready(function() {
|
||||
|
||||
var submitted = false, form = $('form[name=write_post],form[name=write_page]').submit(function () {
|
||||
submitted = true;
|
||||
});
|
||||
}), savedData = null;
|
||||
|
||||
// 自动保存
|
||||
<?php if ($options->autoSave): ?>
|
||||
var savedData = null, locked = false,
|
||||
var locked = false,
|
||||
formAction = form.attr('action'),
|
||||
idInput = $('input[name=cid]'),
|
||||
cid = idInput.val(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user