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"), }) }
// StopInvite closes the invite box func StopInvite() { jq("#userlist-invite-box").Remove() templates.Append("userlist-invite", "#userlist-list", nil) }
// StartNewScript opens the script adder func StartNewScript() { templates.Append("settings-object-adder", "#script-list", "script") jq("#script-adder").Focus() }
// StartInvite opens the invite box func StartInvite() { jq("#userlist-invite").Remove() templates.Append("userlist-invite-box", "#userlist-list", nil) jq("#userlist-invite-box").Focus() }