Fixed conditional initialization of querywidget

This commit is contained in:
Roman Kozlovskiy 2012-09-23 21:48:56 +03:00
parent 4d9e8a6053
commit 91ac6ce6e2
2 changed files with 8 additions and 0 deletions

View File

@ -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)
------------------

View File

@ -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();