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

Version Path
slack-ruby-bot-server-2.1.1 public/scripts/register.js
slack-ruby-bot-server-2.1.0 public/scripts/register.js
slack-ruby-bot-server-2.0.1 public/scripts/register.js
slack-ruby-bot-server-1.2.1 public/scripts/register.js
slack-ruby-bot-server-1.2.0 public/scripts/register.js
slack-ruby-bot-server-1.1.0 public/scripts/register.js
slack-ruby-bot-server-1.0.0 public/scripts/register.js
slack-ruby-bot-server-0.12.3 public/scripts/register.js
slack-ruby-bot-server-0.12.2 public/scripts/register.js
slack-ruby-bot-server-0.12.1 public/scripts/register.js
slack-ruby-bot-server-0.12.0 public/scripts/register.js