aboutsummaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
Diffstat (limited to 'public')
-rw-r--r--public/js/profile.coffee1
-rw-r--r--public/js/profile.js6
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