diff options
| author | Camil Staps | 2015-05-20 17:05:58 +0200 |
|---|---|---|
| committer | Camil Staps | 2015-05-20 17:05:58 +0200 |
| commit | b52e4935cf8e2ef69d2f9bffaaac45fdde60e6bf (patch) | |
| tree | 1497272b7bc9887e1485bb82252f10ead0addc46 /src/js/BotleaguesFrontend.js | |
| parent | Fix bower bootswatch dependency (diff) | |
| parent | Fixed gulpfile bug where // in a URL was turned into http:// automatically by... (diff) | |
Merge branch 'web-only' of ../../Botleagues_old
Diffstat (limited to 'src/js/BotleaguesFrontend.js')
| -rw-r--r-- | src/js/BotleaguesFrontend.js | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/js/BotleaguesFrontend.js b/src/js/BotleaguesFrontend.js deleted file mode 100644 index e9ab570..0000000 --- a/src/js/BotleaguesFrontend.js +++ /dev/null @@ -1,28 +0,0 @@ -function BotleaguesFrontend(){} - -BotleaguesFrontend.error = function(user_options) { - options = { - dismissable: true, - prepend_to: $('#messages'), - type: 'danger' - }; - for (var key in user_options) { - options[key] = user_options[key]; - } - - var html = '<div class="alert alert-' + options.type + '">'; - if (options.dismissable === true) - html += '<a href="#" class="close" data-dismiss="alert">×</a>'; - html += options.message; - html += '</div>'; - - html = $(html); - - html.prependTo(options.prepend_to).delay(3000).fadeOut().queue(html.remove); -}; - -BotleaguesFrontend.login = function() { - Botleagues.redirect({ - endpoint: 'user/login?redirect=http://local.botleagues.camilstaps.nl/' - }); -};
\ No newline at end of file |
