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:
@ -110,7 +110,7 @@ Project Structure
|
|||||||
| **models**/Challenge.js | Mongoose schema and model for Challenge. |
|
| **models**/Challenge.js | Mongoose schema and model for Challenge. |
|
||||||
| **public**/ | Static assets (fonts, css, js, img). |
|
| **public**/ | Static assets (fonts, css, js, img). |
|
||||||
| **public**/**js**/application.js | Specify client-side JavaScript dependencies. |
|
| **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. |
|
| **public**/**css**/main.less | Main stylesheet for the app. |
|
||||||
| **views/account**/ | Templates for *login, password reset, signup, profile*. |
|
| **views/account**/ | Templates for *login, password reset, signup, profile*. |
|
||||||
| **views/partials**/flash.jade | Error, info and success flash notifications. |
|
| **views/partials**/flash.jade | Error, info and success flash notifications. |
|
||||||
|
@ -17,6 +17,7 @@ $(document).ready(function() {
|
|||||||
setCSRFToken($('meta[name="csrf-token"]').attr('content'));
|
setCSRFToken($('meta[name="csrf-token"]').attr('content'));
|
||||||
|
|
||||||
$('#i-want-help').on('click', function() {
|
$('#i-want-help').on('click', function() {
|
||||||
|
/*
|
||||||
var editorValue = editor.getValue();
|
var editorValue = editor.getValue();
|
||||||
var currentLocation = window.location.href;
|
var currentLocation = window.location.href;
|
||||||
$.post(
|
$.post(
|
||||||
@ -33,9 +34,11 @@ $(document).ready(function() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
*/
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#i-want-help-editorless').on('click', function() {
|
$('#i-want-help-editorless').on('click', function() {
|
||||||
|
/*
|
||||||
var currentLocation = window.location.href;
|
var currentLocation = window.location.href;
|
||||||
$.post(
|
$.post(
|
||||||
'/get-help',
|
'/get-help',
|
||||||
@ -50,6 +53,7 @@ $(document).ready(function() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
*/
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#report-issue').on('click', function() {
|
$('#report-issue').on('click', function() {
|
@ -23,9 +23,9 @@ block content
|
|||||||
.button-spacer
|
.button-spacer
|
||||||
if (user.sentSlackInvite)
|
if (user.sentSlackInvite)
|
||||||
.btn-group.input-group.btn-group-justified
|
.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
|
i.fa.fa-medkit
|
||||||
| Get help
|
| Get help(disabled)
|
||||||
.btn.btn-success.btn-big#report-issue
|
.btn.btn-success.btn-big#report-issue
|
||||||
i.fa.fa-bug
|
i.fa.fa-bug
|
||||||
| Report a bug
|
| Report a bug
|
||||||
|
@ -21,9 +21,9 @@ block content
|
|||||||
if (user.sentSlackInvite)
|
if (user.sentSlackInvite)
|
||||||
.button-spacer
|
.button-spacer
|
||||||
.btn-group.input-group.btn-group-justified
|
.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
|
i.fa.fa-medkit
|
||||||
| Help
|
| Help(disabled)
|
||||||
.btn.btn-success.btn-big#i-want-to-pair
|
.btn.btn-success.btn-big#i-want-to-pair
|
||||||
i.fa.fa-user-plus
|
i.fa.fa-user-plus
|
||||||
| Pair
|
| Pair
|
||||||
|
@ -32,7 +32,7 @@ script.
|
|||||||
window.moment || document.write('<script src="/bower_components/moment/min/moment.min.js"><\/script>');
|
window.moment || document.write('<script src="/bower_components/moment/min/moment.min.js"><\/script>');
|
||||||
|
|
||||||
// Leave the below lines alone!
|
// 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")
|
script(src="/bower_components/angular-bootstrap/ui-bootstrap-tpls.min.js")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user