diff options
author | Jose Ivan Vargas <jvargas@gitlab.com> | 2017-02-14 19:49:36 -0600 |
---|---|---|
committer | Jose Ivan Vargas <jvargas@gitlab.com> | 2017-02-23 15:47:23 -0600 |
commit | 4802bd512a2492c7560acde077fee2f4cd9483b3 (patch) | |
tree | bc53f57cb03d9116e4aeb07f36ec3be6315eb810 /app/assets/javascripts/user_callout.js | |
parent | 509ff2ab170802e23646282f1d146a6383b53a66 (diff) | |
download | gitlab-ce-4802bd512a2492c7560acde077fee2f4cd9483b3.tar.gz |
Initial version of the user-callouts
Diffstat (limited to 'app/assets/javascripts/user_callout.js')
-rw-r--r-- | app/assets/javascripts/user_callout.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/app/assets/javascripts/user_callout.js b/app/assets/javascripts/user_callout.js new file mode 100644 index 00000000000..b91fc698629 --- /dev/null +++ b/app/assets/javascripts/user_callout.js @@ -0,0 +1,22 @@ +/* eslint-disable arrow-parens, class-methods-use-this, no-param-reassign */ +/* global Cookies */ + +((global) => { + const userCalloutElementName = '#user-callout'; + + class UserCallout { + constructor() { + this.init(); + } + + init() { + $(document) + .on('DOMContentLoaded', () => { + const element = $(userCalloutElementName); + console.log('element:', element); + }); + } + } + + global.UserCallout = UserCallout; +})(window.gl || (window.gl = {}));
\ No newline at end of file |