mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
another jQuery cache
This commit is contained in:
parent
6fc6b9eb78
commit
c0832e6798
4 changed files with 7 additions and 6 deletions
|
@ -683,7 +683,7 @@
|
|||
utilBtns = self.iframe.getElementById('epiceditor-utilbar');
|
||||
|
||||
// TODO: Move into fullscreen setup function (_setupFullscreen)
|
||||
_elementStates = {}
|
||||
_elementStates = {};
|
||||
self._goFullscreen = function (el) {
|
||||
this._fixScrollbars('auto');
|
||||
|
||||
|
|
|
@ -64,8 +64,9 @@ Template[getTemplate('nav')].events({
|
|||
},
|
||||
'click #login-name-link': function(){
|
||||
if(Meteor.user() && !$('account-link').exists()){
|
||||
$('#login-buttons-logout').before('<a href="/users/'+Meteor.user().slug+'" class="account-link button">View Profile</a>');
|
||||
$('#login-buttons-logout').before('<a href="/account" class="account-link button">Edit Account</a>');
|
||||
}
|
||||
var $loginButtonsLogout = $('#login-buttons-logout');
|
||||
$loginButtonsLogout.before('<a href="/users/'+Meteor.user().slug+'" class="account-link button">View Profile</a>');
|
||||
$loginButtonsLogout.before('<a href="/account" class="account-link button">Edit Account</a>');
|
||||
}
|
||||
}
|
||||
});
|
|
@ -7,5 +7,5 @@ Template[getTemplate('postAdmin')].helpers({
|
|||
},
|
||||
shortScore: function(){
|
||||
return Math.floor(this.score*1000)/1000;
|
||||
},
|
||||
}
|
||||
});
|
|
@ -18,5 +18,5 @@ Template[getTemplate('postInfo')].helpers({
|
|||
var user = Meteor.users.findOne(this.userId, {reactive: false});
|
||||
if(user)
|
||||
return getProfileUrl(user);
|
||||
},
|
||||
}
|
||||
});
|
Loading…
Add table
Reference in a new issue