mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
parent
4406d350c4
commit
274f1ba907
1 changed files with 3 additions and 3 deletions
|
@ -9,9 +9,9 @@ var EditorControllerMixin = Ember.Mixin.create({
|
||||||
* Only with a user-set value (via setSaveType action)
|
* Only with a user-set value (via setSaveType action)
|
||||||
* can the post's status change.
|
* can the post's status change.
|
||||||
*/
|
*/
|
||||||
willPublish: function (key, val) {
|
willPublish: function (key, value) {
|
||||||
if (val) {
|
if (arguments.length > 1) {
|
||||||
return val;
|
return value;
|
||||||
}
|
}
|
||||||
return this.get('isPublished');
|
return this.get('isPublished');
|
||||||
}.property('isPublished'),
|
}.property('isPublished'),
|
||||||
|
|
Loading…
Add table
Reference in a new issue