Skip to content

Commit

Permalink
Merge branch 'master'
Browse files Browse the repository at this point in the history
Conflicts:
	src/server/public/abejs/scripts/modules/EditorReferences.js
  • Loading branch information
nicolaslabbe committed Dec 16, 2016
2 parents 8352841 + d9a26ed commit bac583a
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 4 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,22 @@

## [2.11.5] - 2016-12-16
* [[`cb592582be`](https://github.com/AdFabConnect/abejs/commit/cb592582be)] - Merge branch 'master' of https://github.com/AdFabConnect/abejs (gregorybesson)
* [[`3b238c851c`](https://github.com/AdFabConnect/abejs/commit/3b238c851c)] - **fix**: Add options to iFrame (gregorybesson)
* [[`f041a5b412`](https://github.com/AdFabConnect/abejs/commit/f041a5b412)] - Merge pull request #88 from AdFabConnect/bug_reference (Greg Besson)
* [[`22c628f3da`](https://github.com/AdFabConnect/abejs/commit/22c628f3da)] - **fix**: queryselector from addReference outside of reference editor (wonknu10)
* [[`27b549b858`](https://github.com/AdFabConnect/abejs/commit/27b549b858)] - Update abe-data.md (Greg Besson)
* [[`3aa00b5236`](https://github.com/AdFabConnect/abejs/commit/3aa00b5236)] - Update abe-data.md (Greg Besson)
* [[`8d2c737c1e`](https://github.com/AdFabConnect/abejs/commit/8d2c737c1e)] - Update abe-data.md (Greg Besson)

## [2.11.4] - 2016-12-15

## [2.11.3] - 2016-12-15
* [[`b26e50123b`](https://github.com/AdFabConnect/abejs/commit/b26e50123b)] - **ic**: lint (gregorybesson)
* [[`5ede88400e`](https://github.com/AdFabConnect/abejs/commit/5ede88400e)] - Merge pull request #84 from AdFabConnect/feature_52 (Greg Besson)
* [[`9c2a15ce2b`](https://github.com/AdFabConnect/abejs/commit/9c2a15ce2b)] - **doc**: CHANGELOG (gregorybesson)
* [[`48936b1b81`](https://github.com/AdFabConnect/abejs/commit/48936b1b81)] - **enhancement**: Abe type='data' - An array can be used in a IN and NOT IN request statement (gregorybesson)
* [[`7326eb0af0`](https://github.com/AdFabConnect/abejs/commit/7326eb0af0)] - Merge pull request #81 from AdFabConnect/bug_76 (Greg Besson)
* [[`0a7d9fbb51`](https://github.com/AdFabConnect/abejs/commit/0a7d9fbb51)] - **feature**: add json reference from json reference editor (wonknu10)
* [[`8504e79efc`](https://github.com/AdFabConnect/abejs/commit/8504e79efc)] - Merge branch 'master' into bug_76 (Labbé nicolas)
* [[`5b5be35228`](https://github.com/AdFabConnect/abejs/commit/5b5be35228)] - Merge pull request #80 from AdFabConnect/type_rich_v2 (Greg Besson)
* [[`395a8a1a4e`](https://github.com/AdFabConnect/abejs/commit/395a8a1a4e)] - Merge pull request #83 from AdFabConnect/bug_82 (Greg Besson)
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "abe-cli",
"version": "2.11.4",
"version": "2.11.5",
"description": "Abe command line tool",
"main": "src/server/app.js",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/cli/cms/operations/duplicate.js
Expand Up @@ -38,7 +38,7 @@ const duplicate = function(oldPostUrl, template, newPath, name, req, isUpdate =

var pCreate = cmsOperations.create(template, newPath, name, req, json, (isUpdate) ? false : true)
pCreate.then((resSave) => {
if (isUpdate && oldPostUrl !== newPostUrl) {
if (isUpdate && oldPostUrl !== path.join('/', newPostUrl)) {
abeExtend.hooks.instance.trigger('beforeUpdate', json, oldPostUrl, template, newPath, name, req, isUpdate)
cmsOperations.remove.remove(oldPostUrl)
}
Expand Down
Expand Up @@ -12,6 +12,7 @@ export default class EditorReferences {
this.jsonError = document.querySelector('.json-error')
this.addReference = document.querySelector('.btn-add-reference')
this.addReferenceInput = document.querySelector('.btn-add-reference input')
if(!this.referenceLinks || this.referenceLinks.length < 1) return
this.nameError = this.addReference.querySelector('.error-display')
this.rebind()
}
Expand Down
2 changes: 1 addition & 1 deletion src/server/public/abejs/scripts/modules/EditorReload.js
Expand Up @@ -63,7 +63,7 @@ export default class Reload {

iframe.id = 'page-template'
iframe.src = 'about:blank'
iframe.sandbox = 'allow-same-origin allow-scripts allow-popups allow-forms'
iframe.sandbox = 'allow-presentation allow-modals allow-pointer-lock allow-same-origin allow-scripts allow-popups allow-popups-to-escape-sandbox allow-forms allow-top-navigation'
iframe.setAttribute('data-iframe-src', document.querySelector('#page-template').getAttribute('data-iframe-src'))

var initIframe = function () {
Expand Down
2 changes: 1 addition & 1 deletion src/server/views/partials/page.html
Expand Up @@ -2,7 +2,7 @@
<div class="no-gutter half-view iframe-wrapper reloading">
{{#if isHome}}
{{else}}
<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>
<iframe id="page-template" data-iframe-src="/abe/page/{{@root.json.abe_meta.link}}" src="about:blank" sandbox="allow-presentation allow-modals allow-pointer-lock allow-same-origin allow-scripts allow-popups allow-popups-to-escape-sandbox allow-forms allow-top-navigation"></iframe>
{{/if}}
<div class="browser-size"></div>
<div class="ruler-over"></div>
Expand Down

0 comments on commit bac583a

Please sign in to comment.