Compare commits

...

2 Commits

Author SHA1 Message Date
henry.chen
730cffcb5b 修复文章自动保存bug+发布文章不成功bug 2017-11-17 13:30:47 +08:00
deepzz0
8c3f1c2aba update travis.yml 2017-11-05 13:03:52 +08:00
2 changed files with 2 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ install:
script:
- glide up
- GOOS=linux GOARCH=amd64 go build # 编译版本
- docker build -t registry.cn-hangzhou.aliyuncs.com/deepzz/eiblog . # 构建镜像
- docker build -t registry.cn-hangzhou.aliyuncs.com/deepzz/eiblog:$TRAVIS_TAG . # 构建镜像
after_success:
# - if [ "$TRAVIS_BRANCH" =~ ^v[0-9](\.[0-9])+.*$ ]; then

View File

@@ -265,7 +265,6 @@ $(document).ready(function() {
function autoSaveListener() {
setInterval(function() {
idInput.val(cid);
var data = form.serialize();
if (savedData != data && !locked) {
@@ -275,7 +274,7 @@ $(document).ready(function() {
$.post(formAction, data + '&do=auto', function(o) {
savedData = data;
lastSaveTime = o.time;
cid = o.cid;
idInput.val(o.cid);
autoSave.text('已保存' + ' (' + o.time + ')').effect('highlight', 1000);
locked = false;
}, 'json');