Beispiel #1
0
func addScriptToList(name string) {
	templates.Append("settings-list-entry", "#script-list", map[string]interface{}{
		"Type":    "script",
		"Name":    name,
		"Network": jq("#script-list").Attr("data-network"),
	})
}
Beispiel #2
0
// StopInvite closes the invite box
func StopInvite() {
	jq("#userlist-invite-box").Remove()
	templates.Append("userlist-invite", "#userlist-list", nil)
}
Beispiel #3
0
// StartNewScript opens the script adder
func StartNewScript() {
	templates.Append("settings-object-adder", "#script-list", "script")
	jq("#script-adder").Focus()
}
Beispiel #4
0
// StartInvite opens the invite box
func StartInvite() {
	jq("#userlist-invite").Remove()
	templates.Append("userlist-invite-box", "#userlist-list", nil)
	jq("#userlist-invite-box").Focus()
}