Fixed conditional initialization of querywidget
This commit is contained in:
parent
4d9e8a6053
commit
91ac6ce6e2
|
@ -7,6 +7,9 @@ Changelog
|
|||
- Fixed context for getting ajax results
|
||||
[kroman0]
|
||||
|
||||
- Fixed conditional initialization of querywidget,
|
||||
see https://dev.plone.org/ticket/12529 [kroman0]
|
||||
|
||||
|
||||
1.0b2 (2012-03-19)
|
||||
------------------
|
||||
|
|
|
@ -226,6 +226,11 @@
|
|||
// Enhance for javascript browsers
|
||||
$(document).ready(function () {
|
||||
|
||||
// Check if QueryWidget exists on page
|
||||
if ($(".QueryWidget").length === 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Init
|
||||
$.querywidget.init();
|
||||
|
||||
|
|
Reference in New Issue