Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thread edit refresh #216

Merged
merged 6 commits into from
Aug 21, 2018
Merged

Thread edit refresh #216

merged 6 commits into from
Aug 21, 2018

Conversation

tomjohnhall
Copy link
Contributor

@tomjohnhall tomjohnhall commented Aug 3, 2018

Simple fix calls render functions to update thread info after edit.

While working on this I noticed (in firefox) the scroll after returning from the edit window hides the title bar. Will look into this too.

@JL24 review request

Update: Extra commits after realising the civi scroll was disrupted at first

Resolves #213

responseWrapper: _.template($('#thread-response-template').html()),
outlineTemplate: _.template($('#outline-template').html()),

initialize: function (options) {
console.log('sanity check')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean up console log.

this.$('.thread-wiki-holder').addClass('hide');
this.$('.thread-body-holder').removeClass('hide');
this.$('.thread-body-holder').css({display: 'block'});

this.resizeBodyToWindow();

this.renderOutline();
this.renderOutline();//THISTHIS
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean up comment.

this.$('.main-thread').on('scroll', function (e) {
_this.processCiviScroll();
});
}
},

threadNavRender: function () {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add docstring describing purpose of this function.

@JOO33
Copy link
Member

JOO33 commented Aug 15, 2018

@saxonhouse Could you edit the initial pull request comment with a key word to include the issue you are closing? Please refer to https://help.github.com/articles/closing-issues-using-keywords/ if you need info on that. I will merge after that change is made.

@JOO33
Copy link
Member

JOO33 commented Aug 21, 2018

Nevermind, I got it

@JOO33 JOO33 merged commit a62d8a5 into CiviWiki:dev Aug 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Editing Thread Needs to auto-refresh the page
3 participants