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:
parent
37835b1561
commit
2b25b56b44
@ -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)
|
||||
})
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user