mirror of
https://github.com/Jonnyan404/memos-bber.git
synced 2026-04-25 03:58:37 +09:00
2022.11.15
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
## 更新日志
|
## 更新日志
|
||||||
|
|
||||||
2022.11.15 新增插入文件图片按钮。
|
2022.11.15 新增插入文件图片按钮,尝试修复首次安装需要点一下小锁。
|
||||||
|
|
||||||
2022.11.13 新增插入 todo 按钮。
|
2022.11.13 新增插入 todo 按钮。
|
||||||
|
|
||||||
|
|||||||
+6
-4
@@ -8,6 +8,11 @@ get_info(function (info) {
|
|||||||
$('#blog_info').hide()
|
$('#blog_info').hide()
|
||||||
}
|
}
|
||||||
var memoNow = info.memo_lock
|
var memoNow = info.memo_lock
|
||||||
|
if(memoNow == ''){
|
||||||
|
chrome.storage.sync.set(
|
||||||
|
{ memo_lock: 'PUBLIC'}
|
||||||
|
)
|
||||||
|
}
|
||||||
if(memoNow !== "PUBLIC"){
|
if(memoNow !== "PUBLIC"){
|
||||||
$('#locked').show()
|
$('#locked').show()
|
||||||
$('#unlock').hide()
|
$('#unlock').hide()
|
||||||
@@ -31,8 +36,7 @@ get_info(function (info) {
|
|||||||
//监听输入结束,保存未发送内容到本地
|
//监听输入结束,保存未发送内容到本地
|
||||||
$('#content').blur(function () {
|
$('#content').blur(function () {
|
||||||
chrome.storage.sync.set(
|
chrome.storage.sync.set(
|
||||||
{ open_action: 'save_text', open_content: $('#content').val() },
|
{ open_action: 'save_text', open_content: $('#content').val() }
|
||||||
function () {}
|
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -281,7 +285,6 @@ function get_info(callback) {
|
|||||||
open_action: '',
|
open_action: '',
|
||||||
open_content: '',
|
open_content: '',
|
||||||
resourceIdList: []
|
resourceIdList: []
|
||||||
|
|
||||||
},
|
},
|
||||||
function (items) {
|
function (items) {
|
||||||
var flag = false
|
var flag = false
|
||||||
@@ -317,7 +320,6 @@ function sendText() {
|
|||||||
get_info(function (info) {
|
get_info(function (info) {
|
||||||
if (info.status) {
|
if (info.status) {
|
||||||
//信息满足了
|
//信息满足了
|
||||||
console.log(info.memo_lock)
|
|
||||||
$.message({message: '发送中~~'})
|
$.message({message: '发送中~~'})
|
||||||
//$("#content_submit_text").attr('disabled','disabled');
|
//$("#content_submit_text").attr('disabled','disabled');
|
||||||
let content = $('#content').val()
|
let content = $('#content').val()
|
||||||
|
|||||||
Reference in New Issue
Block a user