Skip to content

Commit

Permalink
bug post page reload (/abe/post/*)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaslabbe committed Oct 28, 2016
1 parent c89dcf5 commit 7b5fbfc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/server/public/scripts/modules/EditorManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,10 @@ export default class EditorManager {
Array.prototype.forEach.call(this._btnVisitSite, (btnVisitSite) => {
btnVisitSite.addEventListener('click', this._handleBtnVisitClick)
})
this._btnManager.addEventListener('click', this._handleBtnManagerClick)

if (this._btnManager != null) {
this._btnManager.addEventListener('click', this._handleBtnManagerClick)
}

if(typeof this._btnRepublish !== 'undefined' && this._btnRepublish !== null) {
this._btnRepublish.addEventListener('click', this._handleBtnRepublishClick)
Expand Down
2 changes: 1 addition & 1 deletion src/server/views/partials/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="no-gutter half-view iframe-wrapper">
{{#if isHome}}
{{else}}
<iframe id="page-template" data-iframe-src="{{template}}" src="about:blank" sandbox="allow-same-origin allow-scripts allow-popups allow-forms"></iframe>
<iframe id="page-template" data-iframe-src="/abe/page/{{@root.json.abe_meta.link}}" src="about:blank" sandbox="allow-same-origin allow-scripts allow-popups allow-forms"></iframe>
{{/if}}
<div class="browser-size"></div>
<div class="ruler-over"></div>
Expand Down

0 comments on commit 7b5fbfc

Please sign in to comment.