mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-14 09:55:47 +01:00
fixed indentation of account.js
This commit is contained in:
@@ -1,40 +1,40 @@
|
||||
(function() {
|
||||
var yourid = templates.get('yourid'),
|
||||
theirid = templates.get('theirid'),
|
||||
isFollowing = templates.get('isFollowing');
|
||||
isFollowing = templates.get('isFollowing');
|
||||
|
||||
$(document).ready(function() {
|
||||
$(document).ready(function() {
|
||||
|
||||
var rep = $('#reputation');
|
||||
rep.html(app.addCommas(rep.html()));
|
||||
var rep = $('#reputation');
|
||||
rep.html(app.addCommas(rep.html()));
|
||||
|
||||
var postcount = $('#postcount');
|
||||
postcount.html(app.addCommas(postcount.html()));
|
||||
var postcount = $('#postcount');
|
||||
postcount.html(app.addCommas(postcount.html()));
|
||||
|
||||
var editLink = $('#editLink');
|
||||
var editLink = $('#editLink');
|
||||
var followBtn = $('#follow-btn');
|
||||
|
||||
if( yourid !== theirid) {
|
||||
editLink.hide();
|
||||
if(isFollowing)
|
||||
followBtn.hide();
|
||||
else
|
||||
followBtn.show();
|
||||
}
|
||||
else {
|
||||
followBtn.hide();
|
||||
}
|
||||
if( yourid !== theirid) {
|
||||
editLink.hide();
|
||||
if(isFollowing)
|
||||
followBtn.hide();
|
||||
else
|
||||
followBtn.show();
|
||||
}
|
||||
else {
|
||||
followBtn.hide();
|
||||
}
|
||||
|
||||
followBtn.on('click', function() {
|
||||
$.post('/users/follow', {uid: theirid},
|
||||
function(data) {
|
||||
followBtn.remove();
|
||||
$('#user-action-alert').html('You are now following'+ $('.account-username').text() +'!').show();
|
||||
followBtn.on('click', function() {
|
||||
$.post('/users/follow', {uid: theirid},
|
||||
function(data) {
|
||||
followBtn.remove();
|
||||
$('#user-action-alert').html('You are now following'+ $('.account-username').text() +'!').show();
|
||||
}
|
||||
);
|
||||
return false;
|
||||
});
|
||||
return false;
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
}());
|
||||
Reference in New Issue
Block a user