Skip to content

Commit

Permalink
enhancement: Rebinding autocompletes blocks when added by a click in …
Browse files Browse the repository at this point in the history
…a each block
  • Loading branch information
gregorybesson committed Jan 1, 2017
1 parent 19e8d06 commit c2d7c33
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/server/public/abejs/scripts/template-engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ class Engine {
this._blocks.onNewBlock(() => {
this._files.rebind()
this._inputs.rebind()
this._autocomplete.rebind()
})

this._manager.remove((el) => {
Expand All @@ -209,6 +210,7 @@ class Engine {

this._blocks.onRemoveBlock(() => {
this._inputs.rebind()
this._autocomplete.rebind()
this._save.serializeForm() ///**************************************** HOOLA
})
}
Expand Down

0 comments on commit c2d7c33

Please sign in to comment.