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

Controlpanel forms time field #3780

Closed
MarcelWeidum opened this issue Feb 4, 2019 · 0 comments
Closed

Controlpanel forms time field #3780

MarcelWeidum opened this issue Feb 4, 2019 · 0 comments

Comments

@MarcelWeidum
Copy link
Contributor

Description

Javascript error on editableTableField new row.

Uncaught TypeError: l.timepicker is not a function
    at Object.createTimeInput (Craft.js:19158)
    at Function.createRow (Craft.js:12861)
    at s.constructor.createRow (Craft.js:12767)
    at s.constructor.addRow (Craft.js:12746)
    at s.constructor.i (jquery.js:496)
    at s.constructor.<anonymous> (garnish.js:893)
    at HTMLDivElement.i (jquery.js:496)
    at HTMLDivElement.dispatch (jquery.js:5206)
    at HTMLDivElement.v.handle (jquery.js:5014)
    at Object.trigger (jquery.js:8201)

Steps to reproduce

  1. New plugin
  2. In a controlpanel section include forms ({% import "_includes/forms" as forms %}) and add this field:
{{ forms.editableTableField({
    label: 'Datumns',
    name: 'dates',
    id: 'dates',
    cols: [
        {
            heading : 'Time',
            type: 'time',
        }
    ]
}) }}
  1. Go to you controlpanel page and try to add a row.

Additional info

  • Craft version: 3.1.7
  • PHP version: 7.2.13
  • Database driver & version: MySQL 5.5.5
  • Plugins & versions: -
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

1 participant