Fully disable all help buttons for now, remove post to slack functionality for aventerous campers who enable the buttons through their console

This commit is contained in:
terakilobyte
2015-05-26 11:10:10 -04:00
parent ff6e11433c
commit e7c855d72f
5 changed files with 10 additions and 6 deletions

View File

@ -110,7 +110,7 @@ Project Structure
| **models**/Challenge.js | Mongoose schema and model for Challenge. |
| **public**/ | Static assets (fonts, css, js, img). |
| **public**/**js**/application.js | Specify client-side JavaScript dependencies. |
| **public**/**js**/main_0.0.1.js | Place your client-side JavaScript here. |
| **public**/**js**/main_0.0.2.js | Place your client-side JavaScript here. |
| **public**/**css**/main.less | Main stylesheet for the app. |
| **views/account**/ | Templates for *login, password reset, signup, profile*. |
| **views/partials**/flash.jade | Error, info and success flash notifications. |

View File

@ -17,6 +17,7 @@ $(document).ready(function() {
setCSRFToken($('meta[name="csrf-token"]').attr('content'));
$('#i-want-help').on('click', function() {
/*
var editorValue = editor.getValue();
var currentLocation = window.location.href;
$.post(
@ -33,9 +34,11 @@ $(document).ready(function() {
}
}
);
*/
});
$('#i-want-help-editorless').on('click', function() {
/*
var currentLocation = window.location.href;
$.post(
'/get-help',
@ -50,6 +53,7 @@ $(document).ready(function() {
}
}
);
*/
});
$('#report-issue').on('click', function() {

View File

@ -23,9 +23,9 @@ block content
.button-spacer
if (user.sentSlackInvite)
.btn-group.input-group.btn-group-justified
.btn.btn-success.btn-big#i-want-help-editorless
.btn.btn-success.btn-big#i-want-help-editorless(disabled)
i.fa.fa-medkit
|   Get help
|   Get help(disabled)
.btn.btn-success.btn-big#report-issue
i.fa.fa-bug
|   Report a bug

View File

@ -21,9 +21,9 @@ block content
if (user.sentSlackInvite)
.button-spacer
.btn-group.input-group.btn-group-justified
.btn.btn-success.btn-big#i-want-help-editorless
.btn.btn-success.btn-big#i-want-help-editorless(disabled)
i.fa.fa-medkit
|   Help
|   Help(disabled)
.btn.btn-success.btn-big#i-want-to-pair
i.fa.fa-user-plus
|   Pair

View File

@ -32,7 +32,7 @@ script.
window.moment || document.write('<script src="/bower_components/moment/min/moment.min.js"><\/script>');
// Leave the below lines alone!
script(src="/js/main_0.0.1.js")
script(src="/js/main_0.0.2.js")
script(src="/bower_components/angular-bootstrap/ui-bootstrap-tpls.min.js")