From 89796eab43fd9557fb3f8e0073e0a0119e4477d5 Mon Sep 17 00:00:00 2001
From: fofolee
@@ -593,22 +593,28 @@ $("#options").on('click', '#showHelp', function () {
$("#options").on('click', '#addAction', function () {
var html = `
-
+
加引号
`
Swal.fire({
title: "预设动作",
+ onBeforeOpen: () => {
+ $('#actionType').change(function () {
+ $('#actionArgs').attr('placeholder', $(this).find(`[value=${$(this).val().replace('.', '\\.')}]`).attr('args'))
+ })
+ },
html: html,
showCancelButton: true,
preConfirm: () => {
@@ -964,7 +970,7 @@ showCodeEditor = () => {
}
programCheck()
$('#program').select2({
- width: 140,
+ width: 100,
minimumResultsForSearch: Infinity
});
$("#options").show()