mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
commit
61444bcf9a
2 changed files with 11 additions and 3 deletions
|
@ -122,12 +122,16 @@
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
setActiveStatus: function setActiveStatus(status, displayText) {
|
setActiveStatus: function (status, displayText) {
|
||||||
// Set the publish button's action
|
// Set the publish button's action
|
||||||
$('.js-post-button')
|
$('.js-post-button')
|
||||||
.attr('data-status', status)
|
.attr('data-status', status)
|
||||||
.text(displayText);
|
.text(displayText);
|
||||||
|
|
||||||
|
// Remove the animated popup arrow
|
||||||
|
$('.splitbutton-save > a')
|
||||||
|
.removeClass('active');
|
||||||
|
|
||||||
// Set the active action in the popup
|
// Set the active action in the popup
|
||||||
$('.splitbutton-save .editor-options li')
|
$('.splitbutton-save .editor-options li')
|
||||||
.removeClass('active')
|
.removeClass('active')
|
||||||
|
@ -234,7 +238,10 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
render: function () {
|
render: function () {
|
||||||
this.$('.js-post-button').text(this.statusMap[this.model.get('status')]);
|
var status = this.model.get('status');
|
||||||
|
|
||||||
|
// Default the selected publish option to the current status of the post.
|
||||||
|
this.setActiveStatus(status, this.statusMap[status]);
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
@ -86,6 +86,7 @@ describe("Export", function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("002", function () {
|
describe("002", function () {
|
||||||
|
this.timeout(5000);
|
||||||
|
|
||||||
should.exist(Exporter001);
|
should.exist(Exporter001);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue