mirror of
https://github.com/eiblog/eiblog.git
synced 2026-02-09 16:12:26 +08:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
730cffcb5b | ||
|
|
8c3f1c2aba |
@@ -19,7 +19,7 @@ install:
|
|||||||
script:
|
script:
|
||||||
- glide up
|
- glide up
|
||||||
- GOOS=linux GOARCH=amd64 go build # 编译版本
|
- 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:
|
after_success:
|
||||||
# - if [ "$TRAVIS_BRANCH" =~ ^v[0-9](\.[0-9])+.*$ ]; then
|
# - if [ "$TRAVIS_BRANCH" =~ ^v[0-9](\.[0-9])+.*$ ]; then
|
||||||
|
|||||||
@@ -265,7 +265,6 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
function autoSaveListener() {
|
function autoSaveListener() {
|
||||||
setInterval(function() {
|
setInterval(function() {
|
||||||
idInput.val(cid);
|
|
||||||
var data = form.serialize();
|
var data = form.serialize();
|
||||||
|
|
||||||
if (savedData != data && !locked) {
|
if (savedData != data && !locked) {
|
||||||
@@ -275,7 +274,7 @@ $(document).ready(function() {
|
|||||||
$.post(formAction, data + '&do=auto', function(o) {
|
$.post(formAction, data + '&do=auto', function(o) {
|
||||||
savedData = data;
|
savedData = data;
|
||||||
lastSaveTime = o.time;
|
lastSaveTime = o.time;
|
||||||
cid = o.cid;
|
idInput.val(o.cid);
|
||||||
autoSave.text('已保存' + ' (' + o.time + ')').effect('highlight', 1000);
|
autoSave.text('已保存' + ' (' + o.time + ')').effect('highlight', 1000);
|
||||||
locked = false;
|
locked = false;
|
||||||
}, 'json');
|
}, 'json');
|
||||||
|
|||||||
Reference in New Issue
Block a user