Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
智布道
OneBlog
提交
2aa310d5
O
OneBlog
项目概览
智布道
/
OneBlog
大约 1 年 前同步成功
通知
11
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
OneBlog
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
2aa310d5
编写于
2月 13, 2019
作者:
智布道
👁
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
💬
更新云存储选择的逻辑
上级
2e7a308b
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
32 addition
and
19 deletion
+32
-19
README.md
README.md
+6
-1
blog-admin/src/main/resources/templates/config.ftl
blog-admin/src/main/resources/templates/config.ftl
+26
-18
未找到文件。
README.md
浏览文件 @
2aa310d5
...
...
@@ -120,7 +120,7 @@ ps: 虽然我知道,大部分人都是来了**直接下载源代码**后就潇
-
[ ] 5. 待续...
...
#
已经在用OneBlog的网站 (
排名按照留言先后顺序 )
#
在用OneBlog的网站 (
排名按照留言先后顺序 )
-
[
张亚东博客
](
https://www.zhyd.me
)
-
[
攻城狮不是猫博客
](
http://www.jsdblog.com
)
-
[
刘辉辉的博客
](
http://www.axxo.top
)
...
...
@@ -133,6 +133,11 @@ ps: 虽然我知道,大部分人都是来了**直接下载源代码**后就潇
-
[
https://blog.itourshare.net/
](
https://blog.itourshare.net/
)
-
[
码农擎天柱
](
http://blog.qinlei.vip/
)
-
[
陈晓雷的博客
](
http://www.csxll.top
)
-
[
小猩博客
](
http://www.cmhblog.com/
)
-
[
宋高俊博客
](
http://www.senghor.cn/
)
-
[
Li Pan's 博客
](
http://www.lipan.xyz/
)
-
[
MTR小站
](
https://www.itmtr.cn/
)
-
[
老揭博客
](
http://www.laojieblog.com/
)
-
更多待续...
烦请各位使用OneBlog的朋友,能留下你的网址(没别的意思,只是看看有多少人而已) -
[
点这儿
](
https://gitee.com/yadong.zhang/DBlog/issues/ILIAQ
)
...
...
blog-admin/src/main/resources/templates/config.ftl
浏览文件 @
2aa310d5
...
...
@@ -583,16 +583,16 @@
<@footer>
<script type="text/javascript">
$(function () {
var oldStorageType;
var oldStorageType
, firstLoad = true
;
$.ajax({
url: '/config/get',
type: 'POST',
success: function (json) {
var data = json.data;
oldStorageType = data.storageType;
$("#myTabContent").find("input, select, textarea").each(function () {
clearText($(this), this.type, data);
});
oldStorageType = data.storageType;
changeMaintenance(data.maintenance && data.maintenance == 1, data.maintenance);
data.zfbPraiseCode && $("#zfbPraiseCodePreview").html('<img src="' + data.fileStoragePath + data.zfbPraiseCode + '" alt="支付宝赞赏码" class="img-responsive img-rounded auto-shake">');
data.wxPraiseCode && $("#wxPraiseCodePreview").html('<img src="' + data.fileStoragePath + data.wxPraiseCode + '" alt="微信赞赏码" class="img-responsive img-rounded auto-shake">');
...
...
@@ -620,9 +620,7 @@
if (!$("#" + thisValue).hasClass("hide")) {
return;
}
if(oldStorageType !== thisValue) {
$.alert.confirm("您确定要切换云存储类型吗?切换后原文件将不可访问!", function () {
oldStorageType = thisValue;
function changeStorageBox() {
$(".storage-box").each(function () {
var $box = $(this);
if ($box.attr("id") === thisValue) {
...
...
@@ -631,6 +629,15 @@
$box.addClass("hide").find("input").attr("disabled", "disabled").attr("readonly", "readonly");
}
});
}
if(firstLoad) {
changeStorageBox();
firstLoad = false;
} else {
if(oldStorageType !== thisValue) {
$.alert.confirm("您确定要切换云存储类型吗?切换后原文件将不可访问!", function () {
oldStorageType = thisValue;
changeStorageBox();
}, function () {
$("#tab_storage input[name=storageType]").each(function () {
var $this = $(this);
...
...
@@ -638,6 +645,7 @@
});
});
}
}
});
$("#tab_setting input[name=maintenance]").on('ifChanged', function (event) {
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录