mirror of
https://github.com/typecho/typecho.git
synced 2025-03-20 01:49:40 +01:00
优雅点
This commit is contained in:
parent
62cdc2bec6
commit
496ffe5d86
@ -124,17 +124,14 @@ $(document).ready(function() {
|
||||
var savedData = null, locked = false,
|
||||
formAction = form.attr('action'),
|
||||
idInput = $('input[name=cid]'),
|
||||
cid = idInput.val(),
|
||||
autoSave = $('#auto-save-message'),
|
||||
autoSaveOnce = !!idInput.val(),
|
||||
lastSaveTime = null,
|
||||
cid = null;
|
||||
autoSaveOnce = !!cid,
|
||||
lastSaveTime = null;
|
||||
|
||||
function autoSaveListener () {
|
||||
setInterval(function () {
|
||||
if (cid) {
|
||||
idInput.val(cid);
|
||||
}
|
||||
|
||||
idInput.val(cid);
|
||||
var data = form.serialize();
|
||||
|
||||
if (savedData != data && !locked) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user