Django CMS 3.11.10 Documentation
the document’s DOMContentLoaded, the window’s load events are triggered. The cms-content-refresh jQuery event on the window is also triggered for backwards compatibility. Some plugins might need to run document.DOMContentLoaded, window.load events and – for backward compatibility – the cms-content-refresh jQuery event are triggered. We encourage to use the window.load event for your plugin’s javascript code also fires a JavaScript event called cms-ready on the document. You can listen to this event using jQuery: watch_models = [Poll] def populate(self): ... CMS.$(document).on('cms-ready', function0 码力 | 493 页 | 1.44 MB | 6 月前0.03
共 1 条
- 1