Oh I didn’t know about the tags functionality in the contacts app. That’s what I need. I’ll try to reuse the code from that view, thanks.
--
Mihnea Dobrescu-Balaur
------------------------------------------------------
From: Romain Foucault
romain....@cozycloud.cc
Reply: Romain Foucault
romain....@cozycloud.cc
Date: 8 Apr 2014 at 10:28:37
To: Mihnea Dobrescu-Balaur
mih...@linux.com
Cc:
cozy-...@googlegroups.com cozy-...@googlegroups.com
Subject: Re: [how to] Keeping a reference of the current model
> You can extend the ModalView, with something like that :
>
> module.exports = class InputModal extends ModalView
>
> onYes: ->
> @cb @$('#modal-input').val() if @cb
> @cb = null
> super
>
> render: ->
> super
> @$('#modal-dialog .modal-boby').append $('> id="modal-input">')