disable framer button when you click it the first time.

This commit is contained in:
Maxwell Salzberg 2012-04-26 15:00:55 -07:00
parent d3b874b020
commit 6d2cd31e73
4 changed files with 18 additions and 8 deletions

View file

@ -43,9 +43,16 @@ app.views.framerControls = app.views.Base.extend({
}, },
saveFrame : function(){ saveFrame : function(){
//how do we make this work for the not this.$('button').prop('disabled', 'disabled')
// this is gross hack to make this action work in the iframe version and not iframe version.
var callback = {}
var parentDoc = parent; var parentDoc = parent;
this.model.save({}, {success : function(){ parentDoc.closeIFrame() }})
if(parentDoc.location.pathname != '/framer'){
callback = {success : function(){ parentDoc.closeIFrame() }}
}
this.model.save({}, callback)
} }
}); });

View file

@ -426,10 +426,11 @@ div[data-template=flow] {
a.mood { a.mood {
@include border-radius(); @include border-radius();
margin-right: 20px; margin-right: 11px;
padding: 5px; padding: 7px;
color: #999; color: #999;
font-size: 20px; font-size: 14px;
line-height: 2em;
&#selected_mood { &#selected_mood {
background-color: #222; background-color: #222;

View file

@ -2,4 +2,4 @@
<button class="done btn-primary next">Next</button> <button class="done btn-primary next">Next</button>
<div class="aspect-selector"/> <div class="aspect-selector"/>
<div class="service-selector"/> <div class="service-selector"/>
</div> </div>

View file

@ -1,2 +1,4 @@
<button class="done btn-primary">done</button> <div id='controls-wrapper'>
<div class='template-picker'></div> <button class="done btn-primary">done</button>
<div class='template-picker'></div>
</div>