Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option sortable doesn't work #161

Open
rpostolov opened this issue Feb 26, 2015 · 1 comment
Open

Option sortable doesn't work #161

rpostolov opened this issue Feb 26, 2015 · 1 comment

Comments

@rpostolov
Copy link

Hi,

I have a problem with the sortable option.

Someone can give me some help please ?

Here is my configuration :

images:
        label:            '1 Picture Minimum and 5 Pictures Maximum - Maximum 3 Mo / picture - PNG or JPG'
        dbType:           collection
        formType:         afe_collection_upload
        addFormOptions:
            attr:
              accept: "image/jpeg, image/png"  # http://stackoverflow.com/questions/11832930/html-input-file-accept-attribute-file-type-csv/11834872#11834872
            primary_key:          id
            nameable:             false
            sortable:             true
            sortable_field:       position
            editable:             [ path, position ]
            type:                 \Tranoi\DesignerInscritBundle\Form\Type\ImageAdmin\EditType
            maxNumberOfFiles:     5
            maxFileSize:          5000000
            minFileSize:          1000
            acceptFileTypes:      /(\.|\/)(gif|jpe?g|png)$/i
            loadImageFileTypes:   /^image\/(gif|jpe?g|png)$/i
            loadImageMaxFileSize: 2500000
            previewMaxWidth:      100
            previewMaxHeight:     100
            previewAsCanvas:      true
            previewFilter:        thumb_gallery_images_admin_list
            prependFiles:         true
            allow_add:            true
            allow_delete:         true
            error_bubbling:       false
            options:
                data_class:       Tranoi\DesignerInscritBundle\Entity\Image

Thanks

@ioleo
Copy link
Member

ioleo commented Mar 3, 2015

And what is the problem? Are there any JS errors in the console?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants