Remove 'manage services' link in standalone mode
This commit is contained in:
parent
4812dc7a23
commit
b885b8583d
3 changed files with 16 additions and 8 deletions
|
|
@ -59,11 +59,13 @@ app.views.Publisher = Backbone.View.extend({
|
|||
this.el_input.val( this.el_hiddenInput.val() );
|
||||
}
|
||||
|
||||
// hide close and preview buttons, in case publisher is standalone
|
||||
// hide close and preview buttons and manage services link
|
||||
// in case publisher is standalone
|
||||
// (e.g. bookmarklet, mentions popup)
|
||||
if( this.standalone ) {
|
||||
this.$('#hide_publisher').hide();
|
||||
this.$("#hide_publisher").hide();
|
||||
this.el_preview.hide();
|
||||
this.$(".question_mark").hide();
|
||||
}
|
||||
|
||||
// this has to be here, otherwise for some reason the callback for the
|
||||
|
|
|
|||
|
|
@ -30,13 +30,15 @@
|
|||
|
||||
.options_and_submit {
|
||||
#publisher_service_icons {
|
||||
.btn-link { text-decoration: none; }
|
||||
.btn-link.question_mark .entypo { color: $text-grey; }
|
||||
.btn-link.question_mark:hover .entypo { color: $black; }
|
||||
.btn-link.service_icon {
|
||||
margin-right: 10px;
|
||||
.btn-link {
|
||||
padding-left: 5px;
|
||||
padding-right: 5px;
|
||||
text-decoration: none;
|
||||
}
|
||||
.btn-link.question_mark { margin-left: 5px; }
|
||||
.btn-link.question_mark .entypo { color: $text-grey; }
|
||||
.btn-link.question_mark:hover .entypo { color: $black; }
|
||||
.dim { opacity: 0.3; }
|
||||
.social_media_logos-wordpress-16x16 {
|
||||
display: inline-block;
|
||||
|
|
|
|||
|
|
@ -16,11 +16,15 @@ describe("app.views.Publisher", function() {
|
|||
});
|
||||
|
||||
it("hides the close button in standalone mode", function() {
|
||||
expect(this.view.$('#hide_publisher').is(':visible')).toBeFalsy();
|
||||
expect(this.view.$("#hide_publisher").is(":visible")).toBeFalsy();
|
||||
});
|
||||
|
||||
it("hides the post preview button in standalone mode", function() {
|
||||
expect(this.view.$('.post_preview_button').is(':visible')).toBeFalsy();
|
||||
expect(this.view.$(".post_preview_button").is(":visible")).toBeFalsy();
|
||||
});
|
||||
|
||||
it("hides the manage services link in standalone mode", function() {
|
||||
expect(this.view.$(".question_mark").is(":visible")).toBeFalsy();
|
||||
});
|
||||
|
||||
describe("createStatusMessage", function(){
|
||||
|
|
|
|||
Loading…
Reference in a new issue