fix autosave effect

This commit is contained in:
joyqi 2024-01-24 18:56:01 +08:00
parent bd6a6a0e0e
commit 25cc1ff3dc

View File

@ -187,7 +187,11 @@ $(document).ready(function() {
cid = o.cid;
draftId = o.draftId;
idInput.val(cid);
autoSave.text('<?php _e('已保存'); ?>' + ' (' + o.time + ')').effect('highlight', 1000);
autoSave.text('<?php _e('已保存'); ?>' + ' (' + o.time + ')');
if (!$(document.body).hasClass('preview')) {
autoSave.effect('highlight', 1000);
}
cb && cb();
};