Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Mockup 2.3.0 (master), plone.app.widgets 1.x, Plone 4.3.x, jQuery 1.11.2: select2 pattern fails to initialize for both input and select elements (tags, language fields)
patterns.pat.select2: Failed while initializing 'select2' pattern. TypeError: self.$el.select2 is not a function
Stack trace:
Select2<.initializeSelect2@http://localhost:28080/policy3/portal_javascripts/Sunburst%20Theme/++resource++plone.app.widgets.js:20677:7
Select2<.init@http://localhost:28080/policy3/portal_javascripts/Sunburst%20Theme/++resource++plone.app.widgets.js:20756:7
Base@http://localhost:28080/policy3/portal_javascripts/Sunburst%20Theme/++resource++plone.app.widgets.js:15944:9
Base.extend/child@http://localhost:28080/policy3/portal_javascripts/Sunburst%20Theme/++resource++plone.app.widgets.js:15979:34
initBasePattern@http://localhost:28080/policy3/portal_javascripts/Sunburst%20Theme/++resource++plone.app.widgets.js:15932:27
registry.initPattern@http://localhost:28080/policy3/portal_javascripts/Sunburst%20Theme/++resource++plone.app.widgets.js:15771:25
executeBound@http://localhost:28080/policy3/portal_javascripts/Sunburst%20Theme/++resource++plone.app.widgets.js:13198:56
_.partial/bound@http://localhost:28080/policy3/portal_javascripts/Sunburst%20Theme/++resource++plone.app.widgets.js:13230:14
registryInitPattern@http://localhost:28080/policy3/portal_javascripts/Sunburst%20Theme/++resource++plone.app.widgets.js:15810:17
registryScan@http://localhost:28080/policy3/portal_javascripts/Sunburst%20Theme/++resource++plone.app.widgets.js:15809:13
registry_init/<@http://localhost:28080/policy3/portal_javascripts/Sunburst%20Theme/++resource++plone.app.widgets.js:15729:17
jQuery.Callbacks/fire@http://localhost:28080/policy3/portal_javascripts/Sunburst%20Theme/++resource++plone.app.widgets.js:5293:10
jQuery.Callbacks/self.fireWith@http://localhost:28080/policy3/portal_javascripts/Sunburst%20Theme/++resource++plone.app.widgets.js:5405:7
.ready@http://localhost:28080/policy3/portal_javascripts/Sunburst%20Theme/++resource++plone.app.widgets.js:5617:3
completed@http://localhost:28080/policy3/portal_javascripts/Sunburst%20Theme/++resource++plone.app.widgets.js:5648:3
EventListener.handleEvent*jQuery.ready.promise@http://localhost:28080/policy3/portal_javascripts/Sunburst%20Theme/++resource++plone.app.widgets.js:5667:4
jQuery.fn.ready@http://localhost:28080/policy3/portal_javascripts/Sunburst%20Theme/++resource++plone.app.widgets.js:5573:2
jQuery.fn.init@http://localhost:28080/policy3/portal_javascripts/Sunburst%20Theme/++resource++plone.app.widgets.js:5013:5
jQuery@http://localhost:28080/policy3/portal_javascripts/Sunburst%20Theme/++resource++plone.app.widgets.js:2218:10
@http://localhost:28080/policy3/portal_javascripts/Sunburst%20Theme/++resource++plone.app.widgets.js:5731:1
@http://localhost:28080/policy3/portal_javascripts/Sunburst%20Theme/++resource++plone.app.widgets.js:2179:3
@http://localhost:28080/policy3/portal_javascripts/Sunburst%20Theme/++resource++plone.app.widgets.js:2160:2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment