showing photos in framer
This commit is contained in:
parent
93e64c43aa
commit
8c640b179e
3 changed files with 4 additions and 1 deletions
|
|
@ -44,6 +44,7 @@ Feature: Creating a new post
|
||||||
And I upload a fixture picture with filename "button.gif"
|
And I upload a fixture picture with filename "button.gif"
|
||||||
And I start the framing process
|
And I start the framing process
|
||||||
Then I should see "This is hella customized" in the framer preview
|
Then I should see "This is hella customized" in the framer preview
|
||||||
|
# And I should see the image "button.gif"
|
||||||
When I select the template "note"
|
When I select the template "note"
|
||||||
Then I should see an "note" framer preview
|
Then I should see an "note" framer preview
|
||||||
When I finalize my frame
|
When I finalize my frame
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@ app.forms.Post = app.forms.Base.extend({
|
||||||
this.model.set(_.inject(this.formAttrs, setValueFromField, {}))
|
this.model.set(_.inject(this.formAttrs, setValueFromField, {}))
|
||||||
//pass collections across
|
//pass collections across
|
||||||
this.model.photos = this.pictureForm.photos
|
this.model.photos = this.pictureForm.photos
|
||||||
|
this.model.set({"photos": this.model.photos.toJSON() })
|
||||||
|
|
||||||
function setValueFromField(memo, attribute, selector){
|
function setValueFromField(memo, attribute, selector){
|
||||||
var selectors = form.find(selector);
|
var selectors = form.find(selector);
|
||||||
|
|
|
||||||
|
|
@ -226,7 +226,7 @@ $pane-width: 420px;
|
||||||
|
|
||||||
.photo-fill {
|
.photo-fill {
|
||||||
@include background-cover();
|
@include background-cover();
|
||||||
|
z-index : -5000; //so the framer controls don't get lost
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
|
@ -250,6 +250,7 @@ $pane-width: 420px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.rich-media {
|
.rich-media {
|
||||||
|
z-index : -5000; //so the framer controls don't get lost
|
||||||
position: absolute;
|
position: absolute;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue