mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-12-24 19:39:58 +08:00
添加模糊查找功能
This commit is contained in:
@@ -220,12 +220,12 @@ $("#options").on('click', '.selectBtn', function () {
|
||||
})
|
||||
|
||||
// 保存
|
||||
$("#options").on('click', '.saveBtn', function () {
|
||||
$("#options").on('click', '.saveBtn', async function () {
|
||||
var code = $('#code').val()
|
||||
var allFts = getManuals();
|
||||
var allFts = await getManuals();
|
||||
if (code in allFts && $("#code").prop('disabled') == false) {
|
||||
$('#code').css({ 'border-bottom-color': '#ec1212' })
|
||||
window.messageBox({ type: 'error', message: "名称与现有的手册重复!", buttons: ['朕知道了'] })
|
||||
window.messageBox({ type: 'error', icon: window.logo, message: "名称与现有的手册重复!", buttons: ['朕知道了'] })
|
||||
} else {
|
||||
var kw = $('#kw').val().split(','),
|
||||
desc = $('#desc').val(),
|
||||
|
||||
Reference in New Issue
Block a user