diff --git a/app/assets/javascripts/app/pages/framer.js b/app/assets/javascripts/app/pages/framer.js index 66ce01fa2..41478c87e 100644 --- a/app/assets/javascripts/app/pages/framer.js +++ b/app/assets/javascripts/app/pages/framer.js @@ -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() }}) } -}) \ No newline at end of file +}); + +function closeIFrame(){ + location.reload() +}; \ No newline at end of file diff --git a/app/assets/templates/profile.jst.hbs b/app/assets/templates/profile.jst.hbs index 6b6b76692..cb8ec83f4 100644 --- a/app/assets/templates/profile.jst.hbs +++ b/app/assets/templates/profile.jst.hbs @@ -13,9 +13,13 @@
+ +
{{#if isOwnProfile}} - + @@ -30,4 +34,4 @@
-
+
\ No newline at end of file