Permalink
Browse files

Change the embed frame target to its own url so that it can be change…

…d independantly of fullscreen.
  • Loading branch information...
1 parent 0bff60f commit 6dd5af869fb71a37e0b11cea998b7ba206c86771 @amcnamara amcnamara committed Jan 7, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/refheap/views/paste.clj
@@ -88,6 +88,9 @@
(defpage "/paste/:id/fullscreen" {:keys [id]}
(fullscreen-paste id))
+(defpage "/paste/:id/framed" {:keys [id]}
+ (fullscreen-paste id))
+
(defn render-paste-preview [paste]
(let [{:keys [paste-id lines summary date user]} paste]
(list
@@ -109,7 +112,7 @@
(layout
(list
[:p "Please copy the following html element onto your webpage, and change the inline size/styling as needed:"]
- [:p "<iframe style=\"width: 648px; height: 400px; border: 0px;\" src=\"http://refheap.com/paste/" paste-id "/fullscreen\" />"]))))
+ [:p "<iframe style=\"width: 648px; height: 400px; border: 0px;\" src=\"http://refheap.com/paste/" paste-id "/framed\" />"]))))
(defn pastes [ps]
[:div#preview-container

0 comments on commit 6dd5af8

Please sign in to comment.