Skip to content

Commit

Permalink
update save js
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaslabbe committed Aug 16, 2016
1 parent 30ebd3c commit 886c6d6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/cli/index.js
Expand Up @@ -3,6 +3,7 @@ import Util from './helpers/abe-utils'
import handlebarsHelperSlugify from 'handlebars-helper-slugify'
import moment from 'moment'
import fse from 'fs-extra'
import clc from 'cli-color'

import {
abeImport,
Expand Down Expand Up @@ -56,6 +57,7 @@ export {
,moment
,fse
,Handlebars
,clc
,Util
,abeCreate
,deep_value
Expand Down
7 changes: 6 additions & 1 deletion src/server/public/scripts/modules/EditorJson.js
Expand Up @@ -65,7 +65,12 @@ export default class Json {
return
}
if(typeof jsonRes.reject !== 'undefined' && jsonRes.reject !== null) {
window.location.href = window.location.origin + window.location.pathname + '?filePath=' + jsonRes.reject
var hash = ''
if(typeof top.location.hash !== 'undefined' && top.location.hash !== null) {
hash = '#' + top.location.hash
}

window.location.href = window.location.origin + window.location.pathname + '?filePath=' + jsonRes.reject + hash
return
}
this.data = jsonRes.json
Expand Down

0 comments on commit 886c6d6

Please sign in to comment.