DG MS; proof of concept

This commit is contained in:
danielgrippi 2012-04-25 19:01:28 -07:00 committed by Maxwell Salzberg
parent 43518a9447
commit 828cc919d0
2 changed files with 13 additions and 4 deletions

View file

@ -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()
};

View file

@ -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">