aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhellekin <hellekin@cepheide.org>2017-11-28 23:28:29 +0100
committerhellekin <hellekin@cepheide.org>2017-11-28 23:29:32 +0100
commitb4080a3aaaf3f756c5f115ab620d6cfcb2c1ce4f (patch)
tree20e99bf579147b8208ceced18360fb167cbaf212
parentbf061afcf4598fdd29f691ac320c5f0d668cda96 (diff)
downloaddiscourse-sample-plugin-b4080a3aaaf3f756c5f115ab620d6cfcb2c1ce4f.tar.gz
Part 1: Add an annoying alert on initialization
-rw-r--r--assets/javascripts/discourse/initializers/alert.js.es66
1 files changed, 6 insertions, 0 deletions
diff --git a/assets/javascripts/discourse/initializers/alert.js.es6 b/assets/javascripts/discourse/initializers/alert.js.es6
new file mode 100644
index 0000000..b3d0661
--- /dev/null
+++ b/assets/javascripts/discourse/initializers/alert.js.es6
@@ -0,0 +1,6 @@
+export default {
+ name: 'alert',
+ initialize() {
+ alert('alert boxes are annoying!');
+ }
+}; \ No newline at end of file