DG MS; proof of concept
This commit is contained in:
parent
43518a9447
commit
828cc919d0
2 changed files with 13 additions and 4 deletions
|
|
@ -43,6 +43,11 @@ app.views.framerControls = app.views.Base.extend({
|
|||
},
|
||||
|
||||
saveFrame : function(){
|
||||
this.model.save()
|
||||
var parentDoc = parent;
|
||||
this.model.save({}, {success : function(){ parentDoc.closeIFrame() }})
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
function closeIFrame(){
|
||||
location.reload()
|
||||
};
|
||||
|
|
@ -13,9 +13,13 @@
|
|||
|
||||
<section id="profile-info"/>
|
||||
|
||||
<div id="composer" style="display:none;">
|
||||
<iframe src="http://diaspora.dev/posts/new" height=600 width=900 style="border:none;"></iframe>
|
||||
</div>
|
||||
|
||||
<section id="profile-controls">
|
||||
{{#if isOwnProfile}}
|
||||
<a href="/posts/new" class="control">
|
||||
<a href="#composer" class="control" rel="facebox">
|
||||
<img src='{{imageUrl "buttons/add_post.jpg"}}' />
|
||||
</a>
|
||||
<a href="#" id="edit-mode-toggle" class="control">
|
||||
|
|
@ -30,4 +34,4 @@
|
|||
|
||||
<section id="canvas"/>
|
||||
|
||||
<div id="paginate"><span class="loader hidden"/></div>
|
||||
<div id="paginate"><span class="loader hidden"/></div>
|
||||
Loading…
Reference in a new issue