cozy / cozy-clearance

Clearance manager for cozy apps
Other
2 stars 7 forks source link

Debug list #13

Open frankrousseau opened 10 years ago

frankrousseau commented 10 years ago

Hi,

I met several problems that should be fixed or at least mentioned in the documentation:

class ShareModal extends CozyClearanceModal
    initialize: ->
        super
        @refresh()
@model.set 'clearance', []
@model.set 'type', 'album'
jsilvestre commented 10 years ago

The end of your post is missing.

aenario commented 9 years ago

Also :

Actually, its more complicated than that, because the modal add its listener on the document after the app, so if the app also listen for key event, it will trigger first. We need to listen on the modal container and make it focusable with tabIndex, then we need to maintain the focus in the modal. Ref : https://github.com/jquery/jquery-ui/blob/d58051ba1a7d06b503853645b13babfc9d8a0242/ui/dialog.js#L346

Note : this is for projects using the cozy-clearance/modal for other purpose (like photos & contacts photos-from-file feature)