Skip to content

Commit

Permalink
fix: allow user to create reference even when there are no reference yet
Browse files Browse the repository at this point in the history
  • Loading branch information
wonknu committed May 18, 2017
1 parent 75a3d0c commit 04711cf
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/server/public/abecms/scripts/modules/EditorReferences.js
Expand Up @@ -7,12 +7,10 @@ export default class EditorReferences {
constructor() {
this._ajax = Nanoajax.ajax
this.referenceLinks = document.querySelectorAll('[data-ref-json]')
if(!this.referenceLinks || this.referenceLinks.length < 1) return
this.textArea = document.querySelector('.display-json')
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

0 comments on commit 04711cf

Please sign in to comment.