|
|
@ -70,6 +70,10 @@ RB.Story = Object.create(RB.Model, { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
markSaving: function(){ |
|
|
|
|
|
|
|
this.$.addClass('saving'); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
saveEdits: function(){ |
|
|
|
saveEdits: function(){ |
|
|
|
j = this.$; |
|
|
|
j = this.$; |
|
|
|
editors = j.find('.editor'); |
|
|
|
editors = j.find('.editor'); |
|
|
@ -106,6 +110,10 @@ RB.Story = Object.create(RB.Model, { |
|
|
|
// Focus on the input corresponding to the field clicked
|
|
|
|
// Focus on the input corresponding to the field clicked
|
|
|
|
j.find( '.' + $(event.currentTarget).attr('fieldname') + '.editor' ).focus(); |
|
|
|
j.find( '.' + $(event.currentTarget).attr('fieldname') + '.editor' ).focus(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
unmarkSaving: function(){ |
|
|
|
|
|
|
|
this.$.removeClass('saving'); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
}); |