1
0
mirror of https://shylinux.com/x/ContextOS synced 2025-04-25 16:58:06 +08:00

add wait.plugin.example.js

This commit is contained in:
shaoying 2019-06-27 20:35:39 +08:00
parent 37835b1561
commit 2b25b56b44

View File

@ -659,10 +659,13 @@ function Plugin(page, pane, field) {
})
},
Runs: function(event, cb) {
this.Clear(), event.Plugin = plugin, field.Run(event, kit.Selector(option, ".args", function(item, index) {
if (wait) {
return
}
wait = true, event.Plugin = plugin, this.Clear(), field.Run(event, kit.Selector(option, ".args", function(item, index) {
return item.value
}), function(msg) {
typeof cb == "function" && cb(msg)
wait = false, typeof cb == "function" && cb(msg)
plugin.ondaemon[display.deal||"table"](msg)
})
},