disable framer button when you click it the first time.
This commit is contained in:
parent
d3b874b020
commit
6d2cd31e73
4 changed files with 18 additions and 8 deletions
|
|
@ -43,9 +43,16 @@ app.views.framerControls = app.views.Base.extend({
|
|||
},
|
||||
|
||||
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;
|
||||
this.model.save({}, {success : function(){ parentDoc.closeIFrame() }})
|
||||
|
||||
if(parentDoc.location.pathname != '/framer'){
|
||||
callback = {success : function(){ parentDoc.closeIFrame() }}
|
||||
}
|
||||
|
||||
this.model.save({}, callback)
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -426,10 +426,11 @@ div[data-template=flow] {
|
|||
|
||||
a.mood {
|
||||
@include border-radius();
|
||||
margin-right: 20px;
|
||||
padding: 5px;
|
||||
margin-right: 11px;
|
||||
padding: 7px;
|
||||
color: #999;
|
||||
font-size: 20px;
|
||||
font-size: 14px;
|
||||
line-height: 2em;
|
||||
|
||||
&#selected_mood {
|
||||
background-color: #222;
|
||||
|
|
|
|||
|
|
@ -1,2 +1,4 @@
|
|||
<button class="done btn-primary">done</button>
|
||||
<div class='template-picker'></div>
|
||||
<div id='controls-wrapper'>
|
||||
<button class="done btn-primary">done</button>
|
||||
<div class='template-picker'></div>
|
||||
</div>
|
||||
Loading…
Reference in a new issue