don't fetch the composer if not on your own profile page
This commit is contained in:
parent
7d1f73261f
commit
9bbea232c4
1 changed files with 6 additions and 4 deletions
|
|
@ -45,10 +45,6 @@
|
|||
|
||||
<section id="profile-info"/>
|
||||
|
||||
<div id="composer" style="display:none;">
|
||||
<iframe src="/posts/new" height=500 width=700 style="border:none;"></iframe>
|
||||
</div>
|
||||
|
||||
<section id="profile-controls">
|
||||
{{#if isOwnProfile}}
|
||||
<a href="#composer" id="composer-button" class="control small" rel="facebox">
|
||||
|
|
@ -57,6 +53,12 @@
|
|||
<a href="#" id="edit-mode-toggle" class="control small">
|
||||
<img src='{{imageUrl "buttons/edit@2x.png"}}' title="Edit Posts" rel="tooltip"/>
|
||||
</a>
|
||||
|
||||
<!-- only load up this iframe if the current user is on their own page.
|
||||
this should be ajax'ed in, regardless. -->
|
||||
<div id="composer" style="display:none;">
|
||||
<iframe src="/posts/new" height=500 width=700 style="border:none;"></iframe>
|
||||
</div>
|
||||
{{/if}}
|
||||
</section>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue