-
Notifications
You must be signed in to change notification settings - Fork 344
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
Thread edit refresh #216
Conversation
project/webapp/static/js/thread.js
Outdated
responseWrapper: _.template($('#thread-response-template').html()), | ||
outlineTemplate: _.template($('#outline-template').html()), | ||
|
||
initialize: function (options) { | ||
console.log('sanity check') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clean up console log.
project/webapp/static/js/thread.js
Outdated
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clean up comment.
project/webapp/static/js/thread.js
Outdated
this.$('.main-thread').on('scroll', function (e) { | ||
_this.processCiviScroll(); | ||
}); | ||
} | ||
}, | ||
|
||
threadNavRender: function () { |
There was a problem hiding this comment.
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.
@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. |
Nevermind, I got it |
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