Sha256: db9686603640841e0ff8a2c6cd179da603e61f2abd3dcbffe13efc2d3b017fab
Contents?: true
Size: 573 Bytes
Versions: 11
Compression:
Stored size: 573 Bytes
Contents
$(document).ready(function() { // Slack OAuth var code = $.url('?code') var state = $.url('?state') if (code) { SlackRubyBotServer.message('Working, please wait ...'); $('#register').hide(); $.ajax({ type: "POST", url: "/api/teams", data: { code: code, state: state }, success: function(data) { SlackRubyBotServer.message('Team successfully registered!<br><br>DM <b>@bot</b> or create a <b>#channel</b> and invite <b>@bot</b> to it.'); }, error: SlackRubyBotServer.error }); } });
Version data entries
11 entries across 11 versions & 1 rubygems