diff options
| author | Adam Soltys <[email protected]> | 2016-11-22 11:59:41 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2016-12-26 14:22:39 -0800 |
| commit | 013cd0962cdf230ea08f32e5c8027b8da2444e75 (patch) | |
| tree | 906abf7424f6bf6c1bd0a0d6b0af7cd26e2a4b82 /public/js | |
| parent | e92783c613fa4266b69f5d56257cf919c86182b7 (diff) | |
| download | coinos-server-013cd0962cdf230ea08f32e5c8027b8da2444e75.tar.gz coinos-server-013cd0962cdf230ea08f32e5c8027b8da2444e75.zip | |
Let users enter their phone number for notifications
Diffstat (limited to 'public/js')
| -rw-r--r-- | public/js/profile.coffee | 1 | ||||
| -rw-r--r-- | public/js/profile.js | 6 |
2 files changed, 2 insertions, 5 deletions
diff --git a/public/js/profile.coffee b/public/js/profile.coffee index fdbde8ee..a894f275 100644 --- a/public/js/profile.coffee +++ b/public/js/profile.coffee @@ -8,6 +8,7 @@ $(-> user = $('#username').val() $.getJSON("/#{user}.json", (data) -> $('#email').val(data.email) + $('#phone').val(data.phone) $('#profile').fadeIn() ) diff --git a/public/js/profile.js b/public/js/profile.js index a49c7583..db81832b 100644 --- a/public/js/profile.js +++ b/public/js/profile.js @@ -1,4 +1,3 @@ -;(function(e,t,n){function i(n,s){if(!t[n]){if(!e[n]){var o=typeof require=="function"&&require;if(!s&&o)return o(n,!0);if(r)return r(n,!0);throw new Error("Cannot find module '"+n+"'")}var u=t[n]={exports:{}};e[n][0](function(t){var r=e[n][1][t];return i(r?r:t)},u,u.exports)}return t[n].exports}var r=typeof require=="function"&&require;for(var s=0;s<n.length;s++)i(n[s]);return i})({1:[function(require,module,exports){ (function() { var g; @@ -13,6 +12,7 @@ user = $('#username').val(); $.getJSON("/" + user + ".json", function(data) { $('#email').val(data.email); + $('#phone').val(data.phone); return $('#profile').fadeIn(); }); $('#confirm').blur(function() { @@ -34,7 +34,3 @@ }); }).call(this); - - -},{}]},{},[1]) -;
\ No newline at end of file |
